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Aa,CAElB,MAAM0wB,EAAc1wB,EAAS,QAAQ,IAAI,cAAc,EAErDA,EAAS,SAAW,KACnB0wB,GAAe,MAAQA,EAAY,QAAQ,YAAY,IAAM,GAG9D,UAAU,cAAc,MAAM,KAAMF,GAAiB,CACtCA,EAAA,aAAa,KAAK,IAAM,CACnC,OAAO,SAAS,OAAO,EACxB,EACF,EAGDD,GAAgBF,CAAa,CAC/B,CACD,EACA,MAAM,IAAM,CACX,QAAQ,IAAI,+DAA+D,EAC5E,CACL,CCvHAH,GAAS,EAETS,GAAS,WAAW,SAAS,eAAe,MAAM,CAAgB,EAAE,OAAQ1pC,EAAA2nC,GAAA,EAAI,CAAE","names":["isTokenExpired","date","moment","API_BASE_URL","GRAPHQL_BASE_URL","MODE","DEV","SENTRY","CRISP_WEBSITE_ID","RECORDING_BUCKET","SET_USER","setUser","createAction","SET_TOKENS","SET_ACCESS_TOKEN","setAccessToken","LOGOUT","logout","waitForRehydration","createAsyncThunk","api","mutex","Mutex","baseQueryDefault","fetchBaseQuery","headers","baseQueryApi","getState","tokens","_a","baseQuery","fetchArgs","extraOptions","args","queryString","release","refreshResult","createApi","graphqlApi","graphqlRequestBaseQuery","initialState","themeSlice","createSlice","state","action","setThemeMode","themeReducer","selectMode","injectedRtkApi","build","queryArg","useAuthRegisterEmailMutation","useAuthGuestRegisterEmailMutation","useAuthRegisterPhoneMutation","useAuthRegisterFacebookQuery","useLazyAuthRegisterFacebookQuery","useAuthLoginFacebookQuery","useLazyAuthLoginFacebookQuery","useAuthGoogleGetAuthorizationMutation","useAuthRegisterGoogleMutation","useAuthLoginGoogleMutation","useAuthSyncGoogleCalendarMutation","useAuthLinkGoogleAccountMutation","useAuthLoginMutation","useAuthFriendlyUsernameMutation","useAuthChangeGuestToUserMutation","useAuthVerifyEmailMutation","useAuthVerifyPhoneNumberMutation","useAuthResendEmailVerificationMutation","useAuthResendPhoneNumberVerificationMutation","useAuthWhoamiQuery","useLazyAuthWhoamiQuery","useAuthGetPublicProfileQuery","useLazyAuthGetPublicProfileQuery","useAuthGetPublicUsernameByIdQuery","useLazyAuthGetPublicUsernameByIdQuery","useAuthUpdateProfileMutation","useAuthRefreshJwtAccessTokenMutation","useAuthResetPasswordUsingEmailStep1Mutation","useAuthResetPasswordUsingEmailStep2Mutation","useAuthRefreshRtmTokenMutation","useAuthOauth2LoginMutation","useAuthCreateRoleMutation","useAuthGetRolesQuery","useLazyAuthGetRolesQuery","useAuthDeleteAccountMutation","useAuthCancelDeleteAccountMutation","useAuthCheckUsernameQuery","useLazyAuthCheckUsernameQuery","useAuthFollowUserMutation","useAuthUnfollowUserMutation","useAuthGetFollowersQuery","useLazyAuthGetFollowersQuery","useAuthGetFolloweesQuery","useLazyAuthGetFolloweesQuery","useAuthReportUserMutation","useAuthUnreportUserMutation","useAuthGetReportedUsersQuery","useLazyAuthGetReportedUsersQuery","useAuthAvoidUserMutation","useAuthUnavoidUserMutation","useAuthGetAvoidedUsersQuery","useLazyAuthGetAvoidedUsersQuery","useAuthGetUserGoalsQuery","useLazyAuthGetUserGoalsQuery","useAuthSsoLoginMutation","useAuthSsoCallbackMutation","useModulesSubmitModuleResultUnauthMutation","useSocialauthVerifyTokenMutation","authSlice","payload","builder","authApi","authReducer","setUserToVerify","setUserFirstTime","setMode","selectUser","toastsSlice","message","severity","toast","setToasts","toastReducer","globalSlice","setUploadProgress","setRecordingStatus","setNewRecordingFetching","setTutorialVideoModalOpen","selectnewRecordingFetching","selectTutorialVideoModalOpen","recordingsReducer","persistConfig","storage","rootReducer","combineReducers","baseApi","persistReducer","sentryReduxEnhancer","createReduxEnhancer","store","configureStore","getDefaultMiddleware","FLUSH","REHYDRATE","PAUSE","PERSIST","PURGE","REGISTER","dispatch","next","LOGIN_ROUTE","SIMPLE_LOGIN_ROUTE","VERIFY_ROUTE","PROFILE_ROUTE","PERSONAL_ROUTE","PROFILE_NOTIFICATION_ROUTE","DASHBOARD_ROUTE","NOTES_ROUTE","FEEDBACK_ROUTE","SUMMARY_ROUTE","MODE_SELECTION_ROUTE","QUIZ_BUSINESS_ROUTE","COMPANY_ACCOUNT_ROUTE","EVENT_ROUTE","RECORDINGS_ROUTE","STATISTIC_ROUTE","USAGE_ROUTE","TABLE_VIEW_ROUTE","PRICING_ROUTE","PREFERRED_ACCENT_ROUTE","TERMS_OF_USE","PRIVACY_POLICY","CardWrapper","styled","Card","prop","fullWidth","background","Header","Box","StyledChip","Chip","resolveProficiency","proficiency","EventCard","React","props","ref","host","status","color","title","language","level","tags","onClick","onDetailsClick","onShareClick","clickable","restProps","jsxs","Stack","jsx","OnlinePredictionIcon","Typography","IconButton","ModeEditOutlineOutlinedIcon","ShareOutlinedIcon","ControlledCardActionArea","alpha","elem","k","children","CardActionArea","ChatContainer","Paper","fullScreen","ChatHistory","ChatMessageContainer","position","MessageTypoContainer","backgroundColor","MessageTypo","useToggle","open","setOpen","useAppDispatch","useDispatch","useAppSelector","useSelector","useModulesSubmitModuleResultMutation","useModulesGetUserModulesQuery","useLazyModulesGetUserModulesQuery","useModulesGetUserModuleResultsQuery","useLazyModulesGetUserModuleResultsQuery","useModulesGetModuleByModuleIdQuery","useLazyModulesGetModuleByModuleIdQuery","useAffiliateGetCouponsQuery","useLazyAffiliateGetCouponsQuery","useAffiliateGetAffiliatesQuery","useLazyAffiliateGetAffiliatesQuery","useAffiliateCreateAffiliateMutation","useAffiliateGetAffiliateQuery","useLazyAffiliateGetAffiliateQuery","useAffiliateDeleteAffiliateMutation","useAffiliateApplyPromotionCodeMutation","useAffiliateGetPromotionsQuery","useLazyAffiliateGetPromotionsQuery","affiliateApi","useAgoraIssueRtcTokenQuery","useLazyAgoraIssueRtcTokenQuery","useAgoraCreateNewRtcRoomMutation","useAgoraGetRtcRoomsQuery","useLazyAgoraGetRtcRoomsQuery","useAgoraGetRtcConfigQuery","useLazyAgoraGetRtcConfigQuery","useAgoraIssueRtmTokenQuery","useLazyAgoraIssueRtmTokenQuery","useAgoraCreateNewRoomMutation","useAgoraGetRoomQuery","useLazyAgoraGetRoomQuery","useAgoraGetRoomsQuery","useLazyAgoraGetRoomsQuery","useAgoraSetEventCurrentRoomMutation","useAgoraSendUserRoomMutation","useAgoraIssueLivekitTokenQuery","useLazyAgoraIssueLivekitTokenQuery","useAgoraHandleLivekitWebhookMutation","useEventGetEventConfigQuery","useLazyEventGetEventConfigQuery","useEventScheduleEventMutation","useEventJoinEventMutation","useEventExitEventMutation","useEventGetCurrentEventQuery","useLazyEventGetCurrentEventQuery","useEventGetEventsQuery","useLazyEventGetEventsQuery","useEventDeleteEventMutation","useEventGetEventByIdQuery","useLazyEventGetEventByIdQuery","useEventModifyEventMutation","useEventMuteEventMutation","useEventUnmuteEventMutation","useEventDisableVideoUserEventMutation","useEventEnableVideoUserEventMutation","useEventEventLockingRoomsMutation","useEventParticipateInEventMutation","useEventDeleteParticipationInEventMutation","useEventChangeNativeSpeakerMutation","useEventEventAutomaticMatchQuery","useLazyEventEventAutomaticMatchQuery","useEventStartNowMutation","useEventPersistTextMessageMutation","useEventGetChatMessagesQuery","useLazyEventGetChatMessagesQuery","useEventKickUserMutation","useEventMatchUsersMutation","useEventEndEventMutation","useEventGetLastMatchQuery","useLazyEventGetLastMatchQuery","useEventGetTotalEventJoinsQuery","useLazyEventGetTotalEventJoinsQuery","useEventGetUserMatchesQuery","useLazyEventGetUserMatchesQuery","useEventRecordEventAttendanceMutation","useEventSendWsMessageMutation","useEventCanJoinEventQuery","useLazyEventCanJoinEventQuery","useEventGetHuddleHostsQuery","useLazyEventGetHuddleHostsQuery","ws","currentEventId","listeners","createSocket","eventId","messageListner","force","refreshTokenIfExpired","closeListner","event","event_","listener","agoraApi","queryFulfilled","data","eventApi","draftEvent","arg","updateCachedData","cacheDataLoaded","cacheEntryRemoved","draftRtcRooms","useAmbassadorsGetAmbassadorsQuery","useLazyAmbassadorsGetAmbassadorsQuery","useAmbassadorsCreateAmbassadorMutation","useAmbassadorsDeleteAmbassadorMutation","useAmbassadorsUpdateAmbassadorMutation","ambassadorsApi","patchResult","draftAuth","useBookingsListUserBookingRequestQuery","useLazyBookingsListUserBookingRequestQuery","useBookingsCreateBookingRequestMutation","useBookingsRespondBookingRequestMutation","useBookingsCancelBookingSessionMutation","useBookingsListStudentBookingRequestQuery","useLazyBookingsListStudentBookingRequestQuery","useBookingsListTeacherBookingSessionsQuery","useLazyBookingsListTeacherBookingSessionsQuery","useBookingsGetTeacherBookingSessionsQuery","useLazyBookingsGetTeacherBookingSessionsQuery","useBookingsGetTeacherAvailabilitiesQuery","useLazyBookingsGetTeacherAvailabilitiesQuery","bookingsApi","useCaptionThisGetCaptionThisGamesConfigQuery","useLazyCaptionThisGetCaptionThisGamesConfigQuery","useCaptionThisJoinGameMutation","useCaptionThisExitGameMutation","useCaptionThisGetGameResultQuery","useLazyCaptionThisGetGameResultQuery","useCaptionThisListGameVideosQuery","useLazyCaptionThisListGameVideosQuery","useCaptionThisGuessGameVideoMutation","captionThisApi","useChatStartGameMutation","useChatLeaveGameMutation","chatApi","useClassroomCreateClassroomMutation","useClassroomListClassroomsQuery","useLazyClassroomListClassroomsQuery","useClassroomGetClassroomQuery","useLazyClassroomGetClassroomQuery","useClassroomJoinClassroomMutation","useClassroomUnjoinClassroomMutation","useClassroomCreateClassroomTaskMutation","useClassroomListClassroomTasksQuery","useLazyClassroomListClassroomTasksQuery","useClassroomGetClassroomTaskQuery","useLazyClassroomGetClassroomTaskQuery","useClassroomReplyClassroomTaskMutation","useClassroomGetJoinedStudentsTaskRepliesQuery","useLazyClassroomGetJoinedStudentsTaskRepliesQuery","useClassroomClassroomInviteStudentMutation","useClassroomGetCurrentClassroomQuery","useLazyClassroomGetCurrentClassroomQuery","useClassroomDeleteClassroomTaskMutation","useClassroomUpdateClassroomTaskMutation","useClassroomListClassroomStudentsQuery","useLazyClassroomListClassroomStudentsQuery","useClassroomRemoveStudentFromClassroomMutation","useClassroomUpdateClassroomMaxSubscribersMutation","useClassroomGetIspeakTasksQuery","useLazyClassroomGetIspeakTasksQuery","useClassroomAddIspeakTaskToClassroomTasksMutation","useClassroomAddTasksFolderMutation","useClassroomGetTeacherTaskFoldersQuery","useLazyClassroomGetTeacherTaskFoldersQuery","useClassroomGetLivePracticeTaskQuery","useLazyClassroomGetLivePracticeTaskQuery","useClassroomOrderClassroomTasksMutation","useClassroomDeleteClassroomTasksFolderMutation","useClassroomUpdateClassroomTasksFolderMutation","useClassroomGetIeltsTasksQuery","useLazyClassroomGetIeltsTasksQuery","useClassroomGetToeflTasksQuery","useLazyClassroomGetToeflTasksQuery","classroomApi","draft","newTask","draftTasks","draftFolders","folder","deleted_task","item","updatedTask","newFolder","deleted_folder","useDiscordCreateDiscordRoleMutation","useDiscordGetDiscordRolesQuery","useLazyDiscordGetDiscordRolesQuery","discordApi","useDiscussionGetConfigQuery","useLazyDiscussionGetConfigQuery","useDiscussionGenerateNewDiscussionTopicMutation","useDiscussionGetCurrentDiscussionTopicQuery","useLazyDiscussionGetCurrentDiscussionTopicQuery","useDiscussionStartDiscussionMutation","useDiscussionExitDiscussionMutation","useDiscussionGetNewTopicMutation","discussionApi","draftTopic","useDocumentsCreateNewDocumentMutation","useDocumentsGetDocumentByIdQuery","useLazyDocumentsGetDocumentByIdQuery","useDocumentsDeleteDocumentByIdMutation","useDocumentsGetDocumentsQuery","useLazyDocumentsGetDocumentsQuery","useDocumentsSplitDocumentMutation","useDocumentsGetSplitDocumentStatusQuery","useLazyDocumentsGetSplitDocumentStatusQuery","useDocumentsGetDocumentPagesQuery","useLazyDocumentsGetDocumentPagesQuery","useDocumentsExportSceneMutation","documentsApi","error","user","array","index","useGeoguesserGetGeoGuesserGamesConfigQuery","useLazyGeoguesserGetGeoGuesserGamesConfigQuery","useGeoguesserJoinGameMutation","useGeoguesserGetGameQuery","useLazyGeoguesserGetGameQuery","useGeoguesserMakeGuessMutation","useGeoguesserGetGameCoordinatesQuery","useLazyGeoguesserGetGameCoordinatesQuery","useGeoguesserExitGameMutation","useGeoguesserGetAllGameResultQuery","useLazyGeoguesserGetAllGameResultQuery","useGeoguesserGetRoundsDataQuery","useLazyGeoguesserGetRoundsDataQuery","geoguesserApi","useHyperbeamStartHyperbeamVmMutation","useHyperbeamGetHyperbeamEventQuery","useLazyHyperbeamGetHyperbeamEventQuery","useHyperbeamShutdownHyperbeamVmMutation","useHyperbeamGetHyperbeamSessionsQuery","useLazyHyperbeamGetHyperbeamSessionsQuery","useHyperbeamDeleteHyperbeamSessionMutation","useHyperbeamGetHyperbeamSessionQuery","useLazyHyperbeamGetHyperbeamSessionQuery","hyperbeamApi","useLanguagesGetLanguagesQuery","useLazyLanguagesGetLanguagesQuery","useLanguagesGetLocationQuery","useLazyLanguagesGetLocationQuery","languagesApi","useLocalizationGetLocalizationFileQuery","useLazyLocalizationGetLocalizationFileQuery","useLocalizationAddLocalizationMutation","localizationApi","useRevisionGetRevisionQuery","useLazyRevisionGetRevisionQuery","useRevisionDeleteRevisionMutation","useRevisionCreateTranscriptionMutation","useRevisionGetUserTranscriptionQuery","useLazyRevisionGetUserTranscriptionQuery","useRevisionUploadChunkedAudioMutation","useRevisionStopRecordingMutation","useRevisionCancelRecordingMutation","useRevisionCreateChunkRecordingSettingsMutation","useRevisionListRecordingsQuery","useLazyRevisionListRecordingsQuery","useRevisionUpdateRecordingMutation","useRevisionGetRecordingQuery","useLazyRevisionGetRecordingQuery","useRevisionDeleteRecordingMutation","useRevisionCreateFeedbackRequestsMutation","useRevisionListFeedbackRequestsQuery","useLazyRevisionListFeedbackRequestsQuery","useRevisionCreateTeacherFeedbackMutation","useRevisionGetFeedbacksQuery","useLazyRevisionGetFeedbacksQuery","useRevisionDeleteFeedbackMutation","useRevisionCreateAudioTeacherFeedbackMutation","useRevisionAddUserPreferenceOnFeedbackMutation","useRevisionGetUserPreferenceOnFeedbackQuery","useLazyRevisionGetUserPreferenceOnFeedbackQuery","useRevisionTranscriptionWebhookMutation","useRevisionCreateRecordingChunkMutation","useRevisionGetDefaultTeacherQuery","useLazyRevisionGetDefaultTeacherQuery","useRevisionGetQuestionsQuery","useLazyRevisionGetQuestionsQuery","useRevisionGetSummaryQuery","useLazyRevisionGetSummaryQuery","useRevisionGetTtsUrlMutation","useRevisionGetActiveStudentsQuery","useLazyRevisionGetActiveStudentsQuery","useRevisionGetGeneralStatsQuery","useLazyRevisionGetGeneralStatsQuery","useRevisionGetAiAnalysisQuery","useLazyRevisionGetAiAnalysisQuery","useRevisionGetStudentPerformanceQuery","useLazyRevisionGetStudentPerformanceQuery","useRevisionGetRecordingLimitsQuery","useLazyRevisionGetRecordingLimitsQuery","useRevisionProcessRecordingMutation","useRevisionGetUsersQuery","useLazyRevisionGetUsersQuery","modulesApi","draftUser","current","_b","_c","_d","draftModules","revisionApi","draftRecordings","useMusicboxGetMusicQuery","useLazyMusicboxGetMusicQuery","useMusicboxPlayMusicMutation","musicboxApi","useNeopaymentSubscribeMutation","useNeopaymentUpgradePlanMutation","useNeopaymentRetrieveSubscriptionQuery","useLazyNeopaymentRetrieveSubscriptionQuery","useNeopaymentStripeWebhookMutation","useNeopaymentListUserSubscriptionsQuery","useLazyNeopaymentListUserSubscriptionsQuery","useNeopaymentGetBillingPortalQuery","useLazyNeopaymentGetBillingPortalQuery","useNeopaymentGetAttendanceLimitsQuery","useLazyNeopaymentGetAttendanceLimitsQuery","neopaymentApi","useNotesCreateStickyNoteMutation","useNotesGetStickyNotesQuery","useLazyNotesGetStickyNotesQuery","useNotesGetStickyNoteByIdQuery","useLazyNotesGetStickyNoteByIdQuery","useNotesDeleteStickyNoteMutation","useNotesUpdateStickyNoteMutation","notesApi","newNote","draftNotes","updatedNote","useNotificationGetUnreadNotificationsNumberQuery","useLazyNotificationGetUnreadNotificationsNumberQuery","useNotificationGetNotificationsQuery","useLazyNotificationGetNotificationsQuery","useNotificationGetNotificationQuery","useLazyNotificationGetNotificationQuery","notificationApi","usePaymentGetSubscriptionPricesQuery","useLazyPaymentGetSubscriptionPricesQuery","usePaymentCreateCheckoutMutation","usePaymentListUserPaymentQuery","useLazyPaymentListUserPaymentQuery","usePaymentGetUserSubscriptionQuery","useLazyPaymentGetUserSubscriptionQuery","usePaymentCreatePortalMutation","usePaymentStripeWebhooksMutation","usePaymentPaymeeWebhooksMutation","usePaymentGetCreditsQuery","useLazyPaymentGetCreditsQuery","usePaymentReportUsageMutation","usePaymentAddStudentSeatsMutation","usePaymentGetStripeAccountQuery","useLazyPaymentGetStripeAccountQuery","usePaymentCreateStripeAccountMutation","usePaymentGenerateStripeOnboardingFormMutation","usePaymentGenerateStripeLoginLinkMutation","usePaymentCreateTeacherCheckoutMutation","usePaymentGetTeacherSubscriptionPlansQuery","useLazyPaymentGetTeacherSubscriptionPlansQuery","usePaymentConnectStripeWebhooksMutation","usePaymentCreateTeacherAiCheckoutMutation","usePaymentGetStripeAccountByUserIdQuery","useLazyPaymentGetStripeAccountByUserIdQuery","usePaymentCancelUserSubscriptionMutation","paymentApi","response","draftAccount","usePictionaryGetPictionaryGamesConfigQuery","useLazyPictionaryGetPictionaryGamesConfigQuery","usePictionaryJoinGameMutation","usePictionaryGetGameQuery","useLazyPictionaryGetGameQuery","usePictionaryMakeGuessMutation","usePictionaryAddGameRoundGuessMutation","usePictionaryExitGameMutation","usePictionaryNextRoundMutation","pictionaryApi","useRatingRateUserMutation","useRatingDeleteRatingMutation","useRatingChangeRatingForUserMutation","useRatingGetRatingIdQuery","useLazyRatingGetRatingIdQuery","useRatingGetRatingsForUserQuery","useLazyRatingGetRatingsForUserQuery","ratingApi","updatedChunks","chunk","comment","updatedComments","newComment","startTime","endTime","chunkIsExist","newFeedback","useStorageUploadToBucketMutation","storageApi","useTeacherFilterTeachersQuery","useLazyTeacherFilterTeachersQuery","useTeacherCreateLessonMutation","useTeacherListLessonQuery","useLazyTeacherListLessonQuery","useTeacherUpdateLessonMutation","useTeacherGetLessonQuery","useLazyTeacherGetLessonQuery","useTeacherGetTeacherAvailabilitiesQuery","useLazyTeacherGetTeacherAvailabilitiesQuery","useTeacherGetCategoriesQuery","useLazyTeacherGetCategoriesQuery","useTeacherCreateGroupLessonMutation","useTeacherGetGroupLessonsQuery","useLazyTeacherGetGroupLessonsQuery","useTeacherUpdateGroupLessonMutation","useTeacherGetGroupLessonQuery","useLazyTeacherGetGroupLessonQuery","useTeacherCreateGroupLessonBookingMutation","useTeacherListGroupLessonBookingsQuery","useLazyTeacherListGroupLessonBookingsQuery","useTeacherDeleteGroupLessonBookingMutation","useTeacherUpdateTeacherHomepageMutation","useTeacherCreateTeacherHomepageMutation","useTeacherGetTeacherHomepageQuery","useLazyTeacherGetTeacherHomepageQuery","useTeacherGetTeacherHomepageByUrlQuery","useLazyTeacherGetTeacherHomepageByUrlQuery","useTeacherCloseTeacherHomepageMutation","useTeacherCheckHomepageUrlAvailabilityMutation","teacherApi","teacherHomepage","transcriptApi","useTranslateTranslateStringMutation","useTranslateGetTranslateLanguagesQuery","useLazyTranslateGetTranslateLanguagesQuery","translateApi","useWeblinksCreateWeblinkMutation","useWeblinksGetWeblinksQuery","useLazyWeblinksGetWeblinksQuery","useWeblinksDeleteWeblinkMutation","useWeblinksGetWeblinkQuery","useLazyWeblinksGetWeblinkQuery","useWeblinksUpdateWeblinksMutation","useWeblinksViewWeblinkMutation","weblinksApi","draftWeblinks","e","useWhiteboardStartWhiteboardMutation","useWhiteboardExitWhiteboardMutation","useWhiteboardCreatePermissionMutation","useWhiteboardListPermissionQuery","useLazyWhiteboardListPermissionQuery","useWhiteboardDeleteAllPermissionsMutation","useWhiteboardDeletePermissionMutation","whiteboardApi","useTheme","mode","resolvedMode","resolveMode","isDark","isLight","theme","useUtilsTheme","Chat","messages","onSendMessage","users","disabled","messagesEndRef","useRef","setMessage","useState","handleSubmit","scrollToBottom","msg","ChatMessage","MessageToSend","type","username","avatar","loading","success","variants","motion","Tooltip","Avatar","Button","TranslateIcon","CircularProgress","CheckCircleIcon","ErrorIcon","onChange","onSubmit","TextField","InputAdornment","EmojiPickerButton","emoji","inputBaseClasses","SendIcon","onEmojiClick","anchorEl","setAnchorEl","handleClick","handleClose","handleEmojiClick","Fragment","InsertEmoticonIcon","Popover","EmojiPicker","BackdropButton","BackdropButtonWithShadow","Container","placement","placements","Icon","buttonProps","containerProps","anchorRef","handleToggle","prevOpen","useEffect","Grow","Popper","TransitionProps","ClickAwayListener","CloseIcon","CodeInput","code","setCode","sx","length","focus","inputMode","rest","digit1El","digit2El","digit3El","digit4El","digit5El","digit6El","digit1","setDigit1","digit2","setDigit2","digit3","setDigit3","digit4","setDigit4","digit5","setDigit5","digit6","setDigit6","digits","handleChange","handleKeyDown","useImperativeHandle","StyledTextField","text","handleStatus","neutral","LevelDisplay","forwardRef","elevation","direction","StyledLinearProgress","LinearProgress","value","linearProgressClasses","height","ProgressBar","currentStep","numberOfSteps","progress","StepsWrapper","StepsContainer","StepTypography","ControllerTimePicker","name","control","Controller","TimePicker","ControllerDatePicker","DatePicker","TextEditor","htmlContent","bgPickOption","handleChangeVideo","videoLink","handleChangeExternalLink","externalLink","onColorChange","onSave","onCancel","readOnly","onUpdate","contentBlock","htmlToDraft","contentState","ContentState","editorState","setEditorState","EditorState","onEditorStateChange","draftjsToHtml","convertToRaw","getCustomButton","buttons","ColorPicker","CheckIcon","Editor","onChangeColor","ColorLensIcon","HexColorPicker","ControllerDateCalendar","DateCalendar","ControllerMobileTimePicker","MobileTimePicker","handleGravatar","avatarImage","Bar","size","TWEEN_FACTOR","numberWithinRange","number","min","max","EmblaCarousel","sliders","options","emblaRef","emblaApi","useEmblaCarousel","tweenValues","setTweenValues","prevBtnDisabled","setPrevBtnDisabled","nextBtnDisabled","setNextBtnDisabled","onScroll","useCallback","engine","scrollProgress","styles","scrollSnap","diffToTarget","loopItem","target","sign","tweenValue","scrollPrev","scrollNext","onSelect","flushSync","ArrowBackIosNewIcon","ArrowForwardIosIcon","EmblaSlider","ControllerAutocomplete","Autocomplete","newValue","ButtonMui","floating","LoadingButton","MuiButton","FormControlCard","FormControlLabel","checked","Modal","onClose","paperProps","showCloseBtn","transition","MuiModal","Backdrop","Transition","inProp","Fade","Zoom","Slide","ControllerSelect","Select","ControllerSlider","Slider","Switch","SwitchMui","ControllerSwitch","ControllerTextField","variant","ContainerMui","ContainerBottom","MuiTypography","Footer","Divider","MuiLink","link","Link","globalTheme","lightTheme","createTheme","lightThemeUnsw","responsiveFontSizes","HeaderPlaceholder","lazy","__vitePreload","AppLayout","ThemeProvider","GlobalStyles","CssBaseline","Suspense","Outlet","AuthLayout","useUser","event_host_id","useLocation","isTeacher","isStudent","isAdmin","role","isCompany","isPartner","userLanguages","isHost","PaperMui","SessionsWrapper","errorHandler","active","formatSeconds","seconds","minutes","remainingSeconds","formattedMinutes","formattedSeconds","CompletedRecordingView","testMyself","dateDesc","setDateDesc","limit","setLimit","completedSessions","isLoading","isError","isSuccess","isFetching","handleLimit","isNewRecordingFetching","prevRecordingIdRef","wasEmptyRef","KeyboardArrowDownIcon","Skeleton","Alert","a","b","dateA","dayjs","dateB","session","i","SessionDisplayCard","DisplaySessions","ListRequest","isSuccessListRequest","isLoadingListRequest","isErrorListRequest","errorListRequest","searchTerm","setSearchTerm","handleSearchChange","filteredRequest","request","updateReviwewFeedback","getStatusRequest","handleReview","lessonId","review","updatedReceived","dateDescRequest","setDateDescRequest","SearchIcon","feedbackId","isRecent","userName","reviewRequest","requestStatus","feedback_id","useParams","location","navigate","useNavigate","isMatcheMd","useMediaQuery","handleNavigate","toolTipDate","titleDate","formattedDate","isActive","Grid","CheckCircleOutlineIcon","LoopIcon","spin","keyframes","SidebarDashboard","StatisticIcon","TabsIcon","DashboardTabs","navLinks","searchParams","useSearchParams","studentTabs","RadioButtonCheckedIcon","DashboardCustomizeIcon","LyricsIcon","teacherTabs","FeedIcon","FactCheckIcon","adminTabs","DataUsageIcon","arrayTabs","Tabs","to","Tab","RouterLink","DashboardFilter","setSearchParams","filters","setFilters","handleFilterChange","filterType","selectedValues","newValues","prev","handleApplyFilters","newSearchParams","key","values","studentFilterData","teacherFilterData","handleResetFilters","handleStudentChange","allOptionSelected","option","previouslyHadAll","filteredValues","selectedIds","studentOptions","student","selectedStudentOptions","opt","id","handleTeacherChange","teacherOptions","teacher","selectedTeacherOptions","yearOptions","cohortOptions","year","MenuItem","selected","cohort","params","SidebarAdminDashboard","AdminDashboardLayout","TutorialVideoModal","isPlaying","setIsPlaying","videoRef","PauseIcon","PlayArrowIcon","DashboardLayout","hasSuperAdminRole","tutorialVideoModalOpen","Dashboard","CenterContainer","ProfileContainer","handleOpen","MenuIcon","ErrorBoundary","useRouteError","AlertTitle","NotFound","KeyboardReturnIcon","NotFoundPlaceholder","PageLayout","fallback","protectedRoute","publicRoute","simple","redirectMessage","roles","navigationType","useNavigationType","previousPathname","Navigate","Helmet","IconContainer","Sidebar","LinkButton","PermIdentityOutlinedIcon","GTranslateIcon","label","icon","missing","pathname","ProfileLayout","useLoaderData","matches","Await","Drawer","SettingsContainer","GlobalStylesComponent","Toast","toasts","elems","messageInfo","setMessageInfo","reason","Snackbar","CrispChat","isEventsPage","Crisp","RootLayout","ScrollRestoration","lightTheme$1","ModalDisplayNote","task","is_ai","setText","updateTask","formData","taskQuestions","question","AiNoteCard","NoteEditor","note","noteContent","setColor","setVideoLink","setExternalLink","questions","setQuestions","n","handleColorChange","c","setChecked","checkedExternal","setCheckedExternal","LinkIcon","parse","MenuNote","handleClosePopover","deleteTask","handleDeleteNote","MoreHorizIcon","GridDragIcon","MenuList","ListItemIcon","DeleteOutlinedIcon","ListItemText","MenuIspeakNote","addIspeakTaskToClassroomTasks","handleAddTask","AddCircleOutlineOutlinedIcon","FolderButton","PlayerWrapper","TaskContainer","Task","TaskCarouselView","tasks","handleClickExternal","handleCardClick","ReactPlayer","DisplayNotes","setDisplayPoppover","setFolder","setDisplayFolderPoppover","currentClassroom","ispeakTasks","isLoadingIspeak","isErrorIspeak","errorIspeak","isSuccessIspeak","activeButton","setActiveButton","livePracticeTask","isLoadinglivePractice","isErrorlivePractice","errorlivePractice","isSuccesslivePractice","handleButtonClick","buttonType","folders","selectedFolder","setSelectedFolder","folderIndex","setFolderIndex","studendView","setStudentView","handleUpdateCache","queryCacheName","orderArray","idIndexMap","acc","curr","indexA","indexB","handleUpdateCacheFolder","newTasks","DraggableGrid","LivePracticeCard","NoteCard","VideoIcon","SortableNoteCard","isDragging","attributes","setNodeRef","transform","useSortable","style","CSS","items","setItems","activeId","setActiveId","sensors","useSensors","useSensor","MouseSensor","TouchSensor","orderTasks","SortableNoteCardMemoized","getItemByIndex","handleDragStart","handleDragEnd","over","oldIndex","newIndex","newArray","arrayMove","idx","handleDragCancel","DndContext","closestCenter","SortableContext","rectSortingStrategy","DragOverlay","StickyNotesPlaceholder","stickyNotesLoader","promise","defer","loginSchema","Yup.object","Yup.string","Yup.date","Yup.array","Yup.number","Yup.boolean","Yup.ref","Yup.mixed","updateLanguagesSchema","Yup.lazy","LoginPlaceholder","ProfilePlaceholder","profileLoader","resolve","unsubscribe","useLanguages","languages","getLanguageFromCode","languageCode","lng","lang","useAccents","accent","LanguagesAutocomplete","placeholder","isMultiple","defaultValue","tagValue","getTagProps","createElement","SubmitAccentForm","enhanceAccents","isSuccessLanguages","submitModule","isDirty","getValues","reset","useForm","yupResolver","formState","PreferredAccent","SubSettingsContainer","MuiIconButton","VisuallyHiddenInput","PersonalPlaceholder","Placeholder","Feedback","Statistic","Usage","TableView","FeedbackById","Login","Summary","SummaryById","StickyNotes","PersonalDetails","NotificationSettings","Recordings","ModeSelection","QuizBusiness","sentryCreateBrowserRouter","wrapCreateBrowserRouter","createBrowserRouter","router","PersonalDetailsPlaceholder","Accent","notesLoader","ModeSelectionPlaceholder","App","utc","isoWeek","persistor","persistStore","Provider","PersistGate","HelmetProvider","LocalizationProvider","AdapterDayjs","RouterProvider","i18n","Backend","LanguageDetector","initReactI18next","DateTime","sentryInit","BrowserTracing","reactRouterV6Instrumentation","createRoutesFromChildren","matchRoutes","isLocalhost","register","config","define_process_env_default","swUrl","checkValidServiceWorker","registerValidSW","registration","installingWorker","contentType","ReactDOM"],"ignoreList":[],"sources":["../../src/common/utils/tokens.ts","../../src/config/config.ts","../../src/features/auth/auth-actions.ts","../../src/app/services/baseQuery.ts","../../src/app/services/api.ts","../../src/app/services/graphql-api.ts","../../src/features/theme/theme.slice.ts","../../src/app/services/auto-generated/auth.ts","../../src/features/auth/auth-slice.ts","../../src/features/toast/toast.slice.ts","../../src/features/recordings/recordings.slice.ts","../../src/app/store/store.ts","../../src/common/constants/routes.ts","../../src/common/components/event-card/event-card.styles.ts","../../src/common/utils/resolve-proficiency.ts","../../src/common/components/event-card/event-card.tsx","../../src/common/components/chat/chat.styles.ts","../../src/common/hooks/use-toggle.ts","../../src/common/hooks/redux.ts","../../src/app/services/auto-generated/modules.ts","../../src/app/services/auto-generated/affiliate.ts","../../src/app/services/affiliate.ts","../../src/app/services/auto-generated/agora.ts","../../src/app/services/auto-generated/event.ts","../../src/app/services/ws.ts","../../src/app/services/agora.ts","../../src/app/services/auto-generated/ambassadors.ts","../../src/app/services/ambassadors.ts","../../src/app/services/auth.ts","../../src/app/services/auto-generated/bookings.ts","../../src/app/services/bookings.ts","../../src/app/services/auto-generated/captionThis.ts","../../src/app/services/captionThis.ts","../../src/app/services/auto-generated/chat.ts","../../src/app/services/chat.ts","../../src/app/services/auto-generated/classroom.ts","../../src/app/services/classroom.ts","../../src/app/services/auto-generated/discord.ts","../../src/app/services/discord.ts","../../src/app/services/auto-generated/discussion.ts","../../src/app/services/discussion.ts","../../src/app/services/auto-generated/documents.ts","../../src/app/services/documents.ts","../../src/app/services/event.ts","../../src/app/services/auto-generated/geoguesser.ts","../../src/app/services/geoguesser.ts","../../src/app/services/auto-generated/hyperbeam.ts","../../src/app/services/hyperbeam.ts","../../src/app/services/auto-generated/languages.ts","../../src/app/services/languages.ts","../../src/app/services/auto-generated/localization.ts","../../src/app/services/localization.ts","../../src/app/services/auto-generated/revision.ts","../../src/app/services/modules.ts","../../src/app/services/auto-generated/musicbox.ts","../../src/app/services/musicbox.ts","../../src/app/services/auto-generated/neopayment.ts","../../src/app/services/neopayment.ts","../../src/app/services/auto-generated/notes.ts","../../src/app/services/notes.ts","../../src/app/services/auto-generated/notification.ts","../../src/app/services/notification.ts","../../src/app/services/auto-generated/payment.ts","../../src/app/services/payment.ts","../../src/app/services/auto-generated/pictionary.ts","../../src/app/services/pictionary.ts","../../src/app/services/auto-generated/rating.ts","../../src/app/services/rating.ts","../../src/app/services/revision.ts","../../src/app/services/auto-generated/storage.ts","../../src/app/services/storage.ts","../../src/app/services/auto-generated/teacher.ts","../../src/app/services/teacher.ts","../../src/app/services/auto-generated/transcript.ts","../../src/app/services/transcript.ts","../../src/app/services/auto-generated/translate.ts","../../src/app/services/translate.ts","../../src/app/services/auto-generated/weblinks.ts","../../src/app/services/weblinks.ts","../../src/app/services/auto-generated/whiteboard.ts","../../src/app/services/whiteboard.ts","../../src/features/auth/utils/refresh-token-if-expired.ts","../../src/features/theme/theme.hooks.ts","../../src/common/components/chat/chat.tsx","../../src/common/components/popper-button/popper-button.styles.ts","../../src/common/components/popper-button/popper-button.tsx","../../src/common/components/otp-input/otp-input.tsx","../../src/common/components/languages-autocomplete/selected-option.tsx","../../src/common/components/languages-autocomplete/languages-autocomplete.tsx","../../src/common/components/ShareLink/share-link.styles.ts","../../src/common/components/carousel/carousel.styles.ts","../../src/common/components/ProgressView/ProgressBar/ProgressBar.styles.ts","../../src/common/components/ProgressView/ProgressBar/ProgressBar.tsx","../../src/common/components/ProgressView/Steps/Steps.styles.ts","../../src/common/components/ProgressView/ProgressView.styles.ts","../../src/common/components/time-picker/time-picker.tsx","../../src/common/components/date-picker/date-picker.tsx","../../src/common/components/text-editor/text-editor.tsx","../../src/common/components/color-picker/color-picker.tsx","../../src/common/components/date-calendar/data-calendar.tsx","../../src/common/components/mobile-time-picker/mobile-time-picker.tsx","../../src/common/utils/gravatar.ts","../../src/common/components/level-display/level-display.styles.ts","../../src/common/components/level-display/level-display.tsx","../../src/common/components/Countdown/Countdown.styles.ts","../../src/common/components/embla-carousel/embla-carousel.tsx","../../src/common/components/autocomplete/autocomplete.tsx","../../src/common/components/button/button.styles.ts","../../src/common/components/button/button.tsx","../../src/common/components/form-control-label/form-control-label.styles.ts","../../src/common/components/modal/modal.styles.tsx","../../src/common/components/modal/modal.tsx","../../src/common/components/select/select.tsx","../../src/common/components/slider/slider.tsx","../../src/common/components/switch/switch.tsx","../../src/common/components/text-field/text-field.tsx","../../src/common/layout/footer/footer.styles.ts","../../src/common/layout/footer/footer.tsx","../../src/styles/themes/unsw-global-theme.ts","../../src/styles/themes/unsw-light-theme.ts","../../src/common/layout/header/placeholder.tsx","../../src/common/layout/app-layout/app-layout.tsx","../../src/common/layout/auth-layout/auth-layout.tsx","../../src/features/auth/hooks/use-user.ts","../../src/common/layout/sidebar-dashboard/sidebar-dashboard.styles.ts","../../src/common/utils/error-handler.ts","../../src/features/booking/display-sessions/display-session.styles.ts","../../src/common/utils/time.ts","../../src/features/booking/display-sessions/completed-recording-view.tsx","../../src/features/booking/display-sessions/display-sessions.tsx","../../src/common/layout/sidebar-dashboard/sidebar-dashboard.tsx","../../src/common/icons/statistic-icon.tsx","../../src/common/icons/tabs-icon.tsx","../../src/common/layout/dashboard-tabs/dashboard-tabs.tsx","../../src/features/(admin)/components/dashboard-filter/dashboard-filter.tsx","../../src/common/layout/sidebar-admin-dashboard/sidebar-admin-dashboard.tsx","../../src/common/layout/admin-dashboard-layout/admin-dashboard-layout.tsx","../../src/features/recordings/components/tutorial-video-modal/tutorial-video-modal.tsx","../../src/common/layout/dashboard-layout/dashboard-layout.tsx","../../src/common/containers/center-container.tsx","../../src/common/containers/auth-container.tsx","../../src/common/containers/profile-container.tsx","../../src/common/containers/profile-settings-container.tsx","../../src/common/containers/profile-subsettings-container.tsx","../../src/common/layout/error-boundary/error-boundary.tsx","../../src/pages/not-found/not-found.tsx","../../src/pages/not-found/placeholder.tsx","../../src/common/layout/page-layout/page-layout.tsx","../../src/common/layout/sidebar/sidebar.styles.ts","../../src/common/layout/sidebar/sidebar.tsx","../../src/common/layout/profile-layout/profile-layout.tsx","../../src/styles/global-styles.tsx","../../src/features/toast/toast.tsx","../../src/features/crisp-chat/components/crisp-chat.tsx","../../src/common/layout/root-layout/root-layout.tsx","../../src/styles/themes/global-theme.ts","../../src/styles/themes/light-theme.ts","../../src/features/notes/components/display-notes/modal-display-note/modal-display-note.tsx","../../src/features/notes/components/display-notes/menu-note/menu-note.tsx","../../src/features/notes/components/display-notes/menu-ispeak-note/menu-ispeak-note.tsx","../../src/features/notes/components/display-notes/display-notes.styles.ts","../../src/features/notes/components/task-carousel-view/task-carousel-view.styles.tsx","../../src/features/notes/components/task/task.styles.ts","../../src/features/notes/components/task/task.tsx","../../src/features/notes/components/task-carousel-view/task-carousel-view.tsx","../../src/features/notes/components/display-notes/display-notes.tsx","../../src/pages/dashboard/sticky-notes/placeholder.tsx","../../src/pages/dashboard/sticky-notes/loader.ts","../../src/common/utils/validations/auth.validations.ts","../../src/pages/login/placeholder.tsx","../../src/pages/profile/placeholder.tsx","../../src/pages/profile/loader.ts","../../src/features/languages/hooks/use-languages.ts","../../src/features/languages/hooks/use-accent.ts","../../src/features/languages/components/languages-autocomplete/languages-autocomplete.tsx","../../src/pages/profile/acccent/accent.tsx","../../src/features/auth/components/update-account-form/update-account-form.styles.ts","../../src/pages/profile/personal-details/placeholder.tsx","../../src/pages/mode-selection/placeholder.tsx","../../src/routes/router-config.tsx","../../src/app/app.tsx","../../src/config/i18n.ts","../../src/config/sentry.ts","../../src/lib/serviceWorkerRegistration.ts","../../src/main.tsx"],"sourcesContent":["import moment from 'moment'\n\nexport const isTokenExpired = (date: moment.MomentInput): boolean => {\n return !moment(date).isAfter()\n}\n","export const API_BASE_URL = import.meta.env.VITE_API_BASE_URL\nexport const GRAPHQL_BASE_URL = import.meta.env.VITE_GRAPHQL_BASE_URL\nexport const MODE = import.meta.env.MODE // mode env\nexport const PROD = import.meta.env.MODE === 'production' // true if prod env\nexport const DEV = import.meta.env.MODE === 'development' // true if dev env\nexport const BASE_URL = window.location.origin\nexport const AGORA_APP_ID = import.meta.env.VITE_AGORA_APP_ID\nexport const SENTRY = import.meta.env.VITE_SENTRY === 'true'\nexport const GOOGLE_MAPS_API_KEY = import.meta.env.VITE_GOOGLE_API_KEY\nexport const CRISP_WEBSITE_ID = import.meta.env.VITE_CRISP_WEBSITE_ID\nexport const RECORDING_BUCKET = import.meta.env.VITE_RECORDING_BUCKET\nexport const DARKLY_CLIENT_SIDE_ID = import.meta.env.VITE_DARKLY_CLIENT_SIDE_ID\n\nexport const HOTJAR_ID = import.meta.env.VITE_HOTJAR_ID\nexport const HOTJAR_SNIPPET_VERSION = import.meta.env.VITE_HOTJAR_SNIPPET_VERSION\n\nexport const IS_UNSW = import.meta.env.VITE_IS_UNSW === 'true'\nexport const ENABLE_ANALYTICS = import.meta.env.VITE_ENABLE_ANALYTICS === 'true'\nexport const PRESENCE_URL = import.meta.env.VITE_PRESENCE_URL\n\nexport const POSTHOG_KEY = import.meta.env.VITE_POSTHOG_KEY\n\nexport const POSTHOG_HOST = import.meta.env.VITE_POSTHOG_HOST\n","import { createAction, createAsyncThunk } from '@reduxjs/toolkit'\n\n// we put the actions in a seperate file to avoid circular dependencies in app/serivces/base-query\n\nexport const SET_USER = 'auth/set_user'\nexport const setUser = createAction(SET_USER)\n\nexport const SET_TOKENS = 'auth/set_tokens'\nexport const setTokens = createAction(SET_TOKENS)\n\nexport const SET_ACCESS_TOKEN = 'auth/set_access_token'\nexport const setAccessToken = createAction(SET_ACCESS_TOKEN)\n\nexport const LOGOUT = 'auth/logout'\nexport const logout = createAction(LOGOUT)\n\nexport const waitForRehydration = createAsyncThunk('waitForRehydration', async (api) => {\n await api.dispatch({ type: 'persist/REHYDRATE' })\n})\n","import { RootState } from '@app/store'\nimport { isTokenExpired } from '@common/utils/tokens'\nimport { API_BASE_URL } from '@config'\nimport { logout, setAccessToken, waitForRehydration } from '@features/auth/auth-actions'\nimport {\n BaseQueryFn,\n FetchArgs,\n FetchBaseQueryError,\n fetchBaseQuery,\n} from '@reduxjs/toolkit/query/react'\nimport { Mutex } from 'async-mutex'\nimport queryString from 'query-string'\n\nconst mutex = new Mutex()\n\nconst baseQueryDefault = fetchBaseQuery({\n baseUrl: API_BASE_URL,\n prepareHeaders: (headers, baseQueryApi) => {\n const { getState } = baseQueryApi\n const tokens = (getState() as RootState).auth.tokens\n if (tokens && !isTokenExpired(tokens.access_token.expiration_time)) {\n // include token in req header\n headers.set('authorization', `Bearer ${tokens.access_token?.token}`)\n return headers\n }\n },\n})\n\nconst baseQuery: BaseQueryFn = async (\n fetchArgs,\n api,\n extraOptions,\n) => {\n const args =\n typeof fetchArgs === 'string'\n ? fetchArgs\n : {\n ...fetchArgs,\n url: fetchArgs.params\n ? fetchArgs.url + '?' + queryString.stringify(fetchArgs.params)\n : fetchArgs.url,\n params: undefined,\n }\n\n const { getState } = api\n await api.dispatch(waitForRehydration(api)) // wait for persisted values not initial ones\n const tokens = await (getState() as RootState).auth.tokens\n\n // logout if refresh token expired\n if (tokens?.refresh_token && isTokenExpired(tokens.refresh_token.expiration_time)) {\n api.dispatch(logout())\n }\n\n // refresh the access token if expired\n if (tokens?.access_token && isTokenExpired(tokens.access_token.expiration_time)) {\n // checking whether the mutex is locked\n if (!mutex.isLocked()) {\n const release = await mutex.acquire()\n try {\n const refreshResult = await baseQueryDefault(\n {\n url: '/api/v1/sdk/auth/refresh',\n headers: { authorization: `Bearer ${tokens?.refresh_token?.token}` },\n method: 'POST',\n },\n api,\n extraOptions,\n )\n if (refreshResult.data) {\n api.dispatch(setAccessToken(refreshResult.data.access_token))\n } else {\n api.dispatch(logout())\n }\n } finally {\n // release must be called once the mutex should be released again.\n release()\n }\n } else {\n // wait until the mutex is available without locking it\n await mutex.waitForUnlock()\n }\n }\n\n const result = await baseQueryDefault(args, api, extraOptions)\n return result\n}\n\nexport default baseQuery\n","import { API_BASE_URL } from '@config'\nimport { createApi } from '@reduxjs/toolkit/query/react'\nimport baseQuery from './baseQuery'\n\n// initialize an empty api service that we'll inject endpoints into later as needed\nconst api = createApi({\n baseQuery,\n endpoints: () => ({}),\n})\n\nexport { api as baseApi }\n","import { GRAPHQL_BASE_URL } from '@config'\nimport { createApi } from '@reduxjs/toolkit/query/react'\nimport { graphqlRequestBaseQuery } from '@rtk-query/graphql-request-base-query'\n\n// initialize an empty api service that we'll inject endpoints into later as needed\nconst graphqlApi = createApi({\n reducerPath: 'graphqlApi',\n baseQuery: graphqlRequestBaseQuery({\n url: GRAPHQL_BASE_URL,\n }),\n endpoints: () => ({}),\n})\n\nexport { graphqlApi as api }\n","import { RootState } from '@app/store'\nimport { createSlice, PayloadAction } from '@reduxjs/toolkit'\nimport { api as authApi } from '@app/services/auto-generated/auth'\n\n// const isDarkMode =\n// window.matchMedia &&\n// window.matchMedia(\"(prefers-color-scheme: dark)\").matches;\n\nexport type modeType = 'browser' | 'light' | 'dark'\n\ninterface themeState {\n mode: modeType\n kids: boolean\n}\nconst initialState: themeState = {\n mode: 'browser',\n kids: false,\n}\n\nconst themeSlice = createSlice({\n name: 'theme',\n initialState,\n reducers: {\n setThemeMode: (state, action: PayloadAction) => {\n state.mode = action.payload\n },\n },\n})\n\nexport const { setThemeMode } = themeSlice.actions\n\nexport default themeSlice.reducer\n\nexport const selectMode = (state: RootState) => state.theme.mode\n","import { baseApi as api } from '../api'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n authRegisterEmail: build.mutation({\n query: (queryArg) => ({\n url: `/api/v1/sdk/auth/register/email`,\n method: 'POST',\n body: queryArg.userProfileRegisterEmail,\n }),\n }),\n authGuestRegisterEmail: build.mutation<\n AuthGuestRegisterEmailApiResponse,\n AuthGuestRegisterEmailApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/sdk/auth/guest_user/register`,\n method: 'POST',\n body: queryArg.guestRegisterUsername,\n }),\n }),\n authRegisterPhone: build.mutation({\n query: (queryArg) => ({\n url: `/api/v1/sdk/auth/register/phone_number`,\n method: 'POST',\n body: queryArg.userProfileRegisterPhone,\n }),\n }),\n authRegisterFacebook: build.query({\n query: (queryArg) => ({\n url: `/api/v1/sdk/auth/register/facebook`,\n params: { state: queryArg.state, scope: queryArg.scope, code: queryArg.code },\n }),\n }),\n authLoginFacebook: build.query({\n query: (queryArg) => ({\n url: `/api/v1/sdk/auth/login/facebook`,\n params: { state: queryArg.state, scope: queryArg.scope, code: queryArg.code },\n }),\n }),\n authGoogleGetAuthorization: build.mutation<\n AuthGoogleGetAuthorizationApiResponse,\n AuthGoogleGetAuthorizationApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/sdk/auth/register/google/get_authorization`,\n method: 'POST',\n body: queryArg.googleGetAuthorizationRequest,\n }),\n }),\n authRegisterGoogle: build.mutation({\n query: (queryArg) => ({\n url: `/api/v1/sdk/auth/register/google`,\n method: 'POST',\n body: queryArg.googleRegisterRequest,\n }),\n }),\n authLoginGoogle: build.mutation({\n query: (queryArg) => ({\n url: `/api/v1/sdk/auth/login/google`,\n method: 'POST',\n body: queryArg.googleLoginRequest,\n }),\n }),\n authSyncGoogleCalendar: build.mutation<\n AuthSyncGoogleCalendarApiResponse,\n AuthSyncGoogleCalendarApiArg\n >({\n query: () => ({ url: `/api/v1/sdk/auth/sync_google_calendar`, method: 'POST' }),\n }),\n authLinkGoogleAccount: build.mutation<\n AuthLinkGoogleAccountApiResponse,\n AuthLinkGoogleAccountApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/sdk/auth/link_google_account`,\n method: 'POST',\n body: queryArg.googleLoginRequest,\n }),\n }),\n authLogin: build.mutation({\n query: (queryArg) => ({\n url: `/api/v1/sdk/auth/login`,\n method: 'POST',\n body: queryArg.loginCred,\n }),\n }),\n authFriendlyUsername: build.mutation<\n AuthFriendlyUsernameApiResponse,\n AuthFriendlyUsernameApiArg\n >({\n query: () => ({ url: `/api/v1/sdk/auth/friendly_username`, method: 'POST' }),\n }),\n authChangeGuestToUser: build.mutation<\n AuthChangeGuestToUserApiResponse,\n AuthChangeGuestToUserApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/sdk/auth/change_guest_to_user`,\n method: 'POST',\n body: queryArg.changeGuestUserToRealUserRequest,\n }),\n }),\n authVerifyEmail: build.mutation({\n query: (queryArg) => ({\n url: `/api/v1/sdk/auth/verify/email`,\n method: 'POST',\n body: queryArg.verifyEmailRequest,\n }),\n }),\n authVerifyPhoneNumber: build.mutation<\n AuthVerifyPhoneNumberApiResponse,\n AuthVerifyPhoneNumberApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/sdk/auth/verify/phone_number`,\n method: 'POST',\n body: queryArg.verifyPhoneNumberRequest,\n }),\n }),\n authResendEmailVerification: build.mutation<\n AuthResendEmailVerificationApiResponse,\n AuthResendEmailVerificationApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/sdk/auth/verify/email/resend`,\n method: 'POST',\n body: queryArg.resendEmailVerificationRequest,\n }),\n }),\n authResendPhoneNumberVerification: build.mutation<\n AuthResendPhoneNumberVerificationApiResponse,\n AuthResendPhoneNumberVerificationApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/sdk/auth/verify/phone_number/resend`,\n method: 'POST',\n body: queryArg.resendPhoneNumberVerificationRequest,\n }),\n }),\n authWhoami: build.query({\n query: () => ({ url: `/api/v1/sdk/auth/me` }),\n }),\n authGetPublicProfile: build.query({\n query: (queryArg) => ({ url: `/api/v1/sdk/auth/profile/${queryArg.username}` }),\n }),\n authGetPublicUsernameById: build.query<\n AuthGetPublicUsernameByIdApiResponse,\n AuthGetPublicUsernameByIdApiArg\n >({\n query: (queryArg) => ({ url: `/api/v1/sdk/auth/profile_id/${queryArg.id}` }),\n }),\n authUpdateProfile: build.mutation({\n query: (queryArg) => ({\n url: `/api/v1/sdk/auth/update`,\n method: 'POST',\n body: queryArg.updateProfileRequest,\n }),\n }),\n authRefreshJwtAccessToken: build.mutation<\n AuthRefreshJwtAccessTokenApiResponse,\n AuthRefreshJwtAccessTokenApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/sdk/auth/refresh`,\n method: 'POST',\n headers: { authorization: queryArg.authorization },\n }),\n }),\n authResetPasswordUsingEmailStep1: build.mutation<\n AuthResetPasswordUsingEmailStep1ApiResponse,\n AuthResetPasswordUsingEmailStep1ApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/sdk/auth/reset/email/step1`,\n method: 'POST',\n body: queryArg.resetPasswordUsingEmailStep1Request,\n }),\n }),\n authResetPasswordUsingEmailStep2: build.mutation<\n AuthResetPasswordUsingEmailStep2ApiResponse,\n AuthResetPasswordUsingEmailStep2ApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/sdk/auth/reset/email/step2`,\n method: 'POST',\n body: queryArg.resetPasswordUsingEmailStep2Request,\n }),\n }),\n authRefreshRtmToken: build.mutation({\n query: () => ({ url: `/api/v1/sdk/auth/refresh/rtm`, method: 'POST' }),\n }),\n authOauth2Login: build.mutation({\n query: (queryArg) => ({\n url: `/api/v1/sdk/auth/oauth2/login`,\n method: 'POST',\n body: queryArg.bodyOauth2LoginApiV1SdkAuthOauth2LoginPost,\n }),\n }),\n authCreateRole: build.mutation({\n query: (queryArg) => ({\n url: `/api/v1/sdk/auth/role`,\n method: 'POST',\n body: queryArg.createRoleRequest,\n }),\n }),\n authGetRoles: build.query({\n query: () => ({ url: `/api/v1/sdk/auth/roles` }),\n }),\n authDeleteAccount: build.mutation({\n query: () => ({ url: `/api/v1/sdk/auth/account/delete`, method: 'DELETE' }),\n }),\n authCancelDeleteAccount: build.mutation<\n AuthCancelDeleteAccountApiResponse,\n AuthCancelDeleteAccountApiArg\n >({\n query: () => ({ url: `/api/v1/sdk/auth/account/delete/cancel`, method: 'POST' }),\n }),\n authCheckUsername: build.query({\n query: (queryArg) => ({\n url: `/api/v1/sdk/auth/check`,\n params: { username: queryArg.username, email: queryArg.email },\n }),\n }),\n authFollowUser: build.mutation({\n query: (queryArg) => ({ url: `/api/v1/sdk/auth/follow/${queryArg.userId}`, method: 'POST' }),\n }),\n authUnfollowUser: build.mutation({\n query: (queryArg) => ({\n url: `/api/v1/sdk/auth/unfollow/${queryArg.userId}`,\n method: 'POST',\n }),\n }),\n authGetFollowers: build.query({\n query: (queryArg) => ({ url: `/api/v1/sdk/auth/followers/${queryArg.userId}` }),\n }),\n authGetFollowees: build.query({\n query: (queryArg) => ({ url: `/api/v1/sdk/auth/followees/${queryArg.userId}` }),\n }),\n authReportUser: build.mutation({\n query: (queryArg) => ({\n url: `/api/v1/sdk/auth/report`,\n method: 'POST',\n body: queryArg.reportUserRequest,\n }),\n }),\n authUnreportUser: build.mutation({\n query: (queryArg) => ({\n url: `/api/v1/sdk/auth/unreport/${queryArg.userId}`,\n method: 'POST',\n }),\n }),\n authGetReportedUsers: build.query({\n query: () => ({ url: `/api/v1/sdk/auth/reported` }),\n }),\n authAvoidUser: build.mutation({\n query: (queryArg) => ({ url: `/api/v1/sdk/auth/avoid/${queryArg.userId}`, method: 'POST' }),\n }),\n authUnavoidUser: build.mutation({\n query: (queryArg) => ({ url: `/api/v1/sdk/auth/unavoid/${queryArg.userId}`, method: 'POST' }),\n }),\n authGetAvoidedUsers: build.query({\n query: () => ({ url: `/api/v1/sdk/auth/avoided` }),\n }),\n authGetUserGoals: build.query({\n query: (queryArg) => ({ url: `/api/v1/sdk/auth/user/${queryArg.userId}/goals` }),\n }),\n authSsoLogin: build.mutation({\n query: (queryArg) => ({\n url: `/api/v1/sdk/auth/sso/login`,\n method: 'POST',\n body: queryArg.ssoLoginRequest,\n }),\n }),\n authSsoCallback: build.mutation({\n query: (queryArg) => ({\n url: `/api/v1/sdk/auth/sso/callback`,\n method: 'POST',\n body: queryArg.ssoCallbackRequest,\n }),\n }),\n modulesSubmitModuleResultUnauth: build.mutation<\n ModulesSubmitModuleResultUnauthApiResponse,\n ModulesSubmitModuleResultUnauthApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/modules/module/unauth/submit`,\n method: 'POST',\n body: queryArg.moduleResult,\n }),\n }),\n socialauthVerifyToken: build.mutation<\n SocialauthVerifyTokenApiResponse,\n SocialauthVerifyTokenApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/socialauth/verify`,\n method: 'POST',\n body: queryArg.socialAuthRequest,\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type AuthRegisterEmailApiResponse = /** status 200 Successful Response */ TokenResponse\nexport type AuthRegisterEmailApiArg = {\n userProfileRegisterEmail: UserProfileRegisterEmail\n}\nexport type AuthGuestRegisterEmailApiResponse = /** status 200 Successful Response */ TokenResponse\nexport type AuthGuestRegisterEmailApiArg = {\n guestRegisterUsername: GuestRegisterUsername\n}\nexport type AuthRegisterPhoneApiResponse = /** status 200 Successful Response */ TokenResponse\nexport type AuthRegisterPhoneApiArg = {\n userProfileRegisterPhone: UserProfileRegisterPhone\n}\nexport type AuthRegisterFacebookApiResponse = /** status 200 Successful Response */ TokenResponse\nexport type AuthRegisterFacebookApiArg = {\n state: string | null\n scope: string\n code: string\n}\nexport type AuthLoginFacebookApiResponse = /** status 200 Successful Response */ TokenResponse\nexport type AuthLoginFacebookApiArg = {\n state: string | null\n scope: string\n code: string\n}\nexport type AuthGoogleGetAuthorizationApiResponse =\n /** status 200 Successful Response */ GoogleAuthorizationUrlResponse\nexport type AuthGoogleGetAuthorizationApiArg = {\n googleGetAuthorizationRequest: GoogleGetAuthorizationRequest\n}\nexport type AuthRegisterGoogleApiResponse = /** status 200 Successful Response */ TokenResponse\nexport type AuthRegisterGoogleApiArg = {\n googleRegisterRequest: GoogleRegisterRequest\n}\nexport type AuthLoginGoogleApiResponse = /** status 200 Successful Response */ TokenResponse\nexport type AuthLoginGoogleApiArg = {\n googleLoginRequest: GoogleLoginRequest\n}\nexport type AuthSyncGoogleCalendarApiResponse =\n /** status 200 Successful Response */ SyncedEventsResponse\nexport type AuthSyncGoogleCalendarApiArg = void\nexport type AuthLinkGoogleAccountApiResponse = /** status 201 Successful Response */ any\nexport type AuthLinkGoogleAccountApiArg = {\n googleLoginRequest: GoogleLoginRequest\n}\nexport type AuthLoginApiResponse = /** status 200 Successful Response */ TokenResponse\nexport type AuthLoginApiArg = {\n loginCred: LoginCred\n}\nexport type AuthFriendlyUsernameApiResponse =\n /** status 200 Successful Response */ GuestUsernameResponse\nexport type AuthFriendlyUsernameApiArg = void\nexport type AuthChangeGuestToUserApiResponse =\n /** status 200 Successful Response */ OwnPublicUserProfile\nexport type AuthChangeGuestToUserApiArg = {\n changeGuestUserToRealUserRequest: ChangeGuestUserToRealUserRequest\n}\nexport type AuthVerifyEmailApiResponse = /** status 200 Successful Response */ any\nexport type AuthVerifyEmailApiArg = {\n verifyEmailRequest: VerifyEmailRequest\n}\nexport type AuthVerifyPhoneNumberApiResponse = /** status 200 Successful Response */ any\nexport type AuthVerifyPhoneNumberApiArg = {\n verifyPhoneNumberRequest: VerifyPhoneNumberRequest\n}\nexport type AuthResendEmailVerificationApiResponse = /** status 200 Successful Response */ any\nexport type AuthResendEmailVerificationApiArg = {\n resendEmailVerificationRequest: ResendEmailVerificationRequest\n}\nexport type AuthResendPhoneNumberVerificationApiResponse = /** status 200 Successful Response */ any\nexport type AuthResendPhoneNumberVerificationApiArg = {\n resendPhoneNumberVerificationRequest: ResendPhoneNumberVerificationRequest\n}\nexport type AuthWhoamiApiResponse = /** status 200 Successful Response */ OwnPublicUserProfile\nexport type AuthWhoamiApiArg = void\nexport type AuthGetPublicProfileApiResponse =\n /** status 200 Successful Response */ BriefPublicUserProfile\nexport type AuthGetPublicProfileApiArg = {\n username: string\n}\nexport type AuthGetPublicUsernameByIdApiResponse =\n /** status 200 Successful Response */ BriefPublicUserProfile\nexport type AuthGetPublicUsernameByIdApiArg = {\n id: number\n}\nexport type AuthUpdateProfileApiResponse = /** status 200 Successful Response */ any\nexport type AuthUpdateProfileApiArg = {\n updateProfileRequest: UpdateProfileRequest\n}\nexport type AuthRefreshJwtAccessTokenApiResponse =\n /** status 200 Successful Response */ TokenResponse\nexport type AuthRefreshJwtAccessTokenApiArg = {\n authorization?: string\n}\nexport type AuthResetPasswordUsingEmailStep1ApiResponse = /** status 200 Successful Response */ any\nexport type AuthResetPasswordUsingEmailStep1ApiArg = {\n resetPasswordUsingEmailStep1Request: ResetPasswordUsingEmailStep1Request\n}\nexport type AuthResetPasswordUsingEmailStep2ApiResponse = /** status 200 Successful Response */ any\nexport type AuthResetPasswordUsingEmailStep2ApiArg = {\n resetPasswordUsingEmailStep2Request: ResetPasswordUsingEmailStep2Request\n}\nexport type AuthRefreshRtmTokenApiResponse = /** status 200 Successful Response */ TokenResponse\nexport type AuthRefreshRtmTokenApiArg = void\nexport type AuthOauth2LoginApiResponse = /** status 200 Successful Response */ any\nexport type AuthOauth2LoginApiArg = {\n bodyOauth2LoginApiV1SdkAuthOauth2LoginPost: BodyOauth2LoginApiV1SdkAuthOauth2LoginPost\n}\nexport type AuthCreateRoleApiResponse = /** status 200 Successful Response */ any\nexport type AuthCreateRoleApiArg = {\n createRoleRequest: CreateRoleRequest\n}\nexport type AuthGetRolesApiResponse = /** status 200 Successful Response */ any\nexport type AuthGetRolesApiArg = void\nexport type AuthDeleteAccountApiResponse = unknown\nexport type AuthDeleteAccountApiArg = void\nexport type AuthCancelDeleteAccountApiResponse = /** status 200 Successful Response */ any\nexport type AuthCancelDeleteAccountApiArg = void\nexport type AuthCheckUsernameApiResponse = /** status 200 Successful Response */ any\nexport type AuthCheckUsernameApiArg = {\n username?: string | null\n email?: string | null\n}\nexport type AuthFollowUserApiResponse = /** status 200 Successful Response */ any\nexport type AuthFollowUserApiArg = {\n userId: number\n}\nexport type AuthUnfollowUserApiResponse = /** status 200 Successful Response */ any\nexport type AuthUnfollowUserApiArg = {\n userId: number\n}\nexport type AuthGetFollowersApiResponse =\n /** status 200 Successful Response */ BriefPublicUserProfile[]\nexport type AuthGetFollowersApiArg = {\n userId: number\n}\nexport type AuthGetFolloweesApiResponse =\n /** status 200 Successful Response */ BriefPublicUserProfile[]\nexport type AuthGetFolloweesApiArg = {\n userId: number\n}\nexport type AuthReportUserApiResponse = /** status 200 Successful Response */ any\nexport type AuthReportUserApiArg = {\n reportUserRequest: ReportUserRequest\n}\nexport type AuthUnreportUserApiResponse = /** status 200 Successful Response */ any\nexport type AuthUnreportUserApiArg = {\n userId: number\n}\nexport type AuthGetReportedUsersApiResponse = /** status 200 Successful Response */ any\nexport type AuthGetReportedUsersApiArg = void\nexport type AuthAvoidUserApiResponse = /** status 200 Successful Response */ any\nexport type AuthAvoidUserApiArg = {\n userId: number\n}\nexport type AuthUnavoidUserApiResponse = /** status 200 Successful Response */ any\nexport type AuthUnavoidUserApiArg = {\n userId: number\n}\nexport type AuthGetAvoidedUsersApiResponse =\n /** status 200 Successful Response */ BriefPublicUserProfile[]\nexport type AuthGetAvoidedUsersApiArg = void\nexport type AuthGetUserGoalsApiResponse =\n /** status 200 Successful Response */ GoalsQuestionnaireDataResponse\nexport type AuthGetUserGoalsApiArg = {\n userId: number\n}\nexport type AuthSsoLoginApiResponse = /** status 200 Successful Response */ any\nexport type AuthSsoLoginApiArg = {\n ssoLoginRequest: SsoLoginRequest\n}\nexport type AuthSsoCallbackApiResponse = /** status 200 Successful Response */ any\nexport type AuthSsoCallbackApiArg = {\n ssoCallbackRequest: SsoCallbackRequest\n}\nexport type ModulesSubmitModuleResultUnauthApiResponse =\n /** status 201 Successful Response */ SubmitModuleResultResponse\nexport type ModulesSubmitModuleResultUnauthApiArg = {\n moduleResult: ModuleResult\n}\nexport type SocialauthVerifyTokenApiResponse =\n /** status 200 Successful Response */ SocialAuthResponse\nexport type SocialauthVerifyTokenApiArg = {\n socialAuthRequest: SocialAuthRequest\n}\nexport type Token = {\n token: string\n expiration_time?: string | null\n}\nexport type TokenResponse = {\n access_token?: Token | null\n refresh_token?: Token | null\n rtm_token?: Token | null\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type Pronouns = 0 | 1 | 2 | 3\nexport type TeacherProfileResponse = {\n bio?: string | null\n experience?: string | null\n tags?: string[] | null\n video_link?: string | null\n teaching_style?: string | null\n price_per_hour?: number | null\n partner?: boolean | null\n is_reviewer?: boolean | null\n}\nexport type LanguageExperience = 0 | 1 | 2 | 3 | 4\nexport type LanguageProficiency = {\n language: string\n proficiency: LanguageExperience\n}\nexport type UserStatus = 'STUDENT' | 'TEACHER'\nexport type Permission =\n | 'CREATE_EVENT'\n | 'CREATE_PENGGUIN_EVENT'\n | 'SEND_DIRECT_MESSAGE'\n | 'CREATE_CUSTOM_ROLE'\n | 'SEND_EMAIL_TO_USERS'\n | 'CREATE_GEOGUESSER_GAME'\n | 'JOIN_GEOGUESSER_GAME'\n | 'MAKE_GUESS_GEOGUESSER_GAME'\n | 'MAKE_RATING'\n | 'UPLOAD_FILE'\n | 'DELETE_ACCOUNT'\n | 'MAKE_ROLE'\n | 'ASSIGN_ROLE'\n | 'VIEW_ROLES'\n | 'EDIT_ROLE'\n | 'GENERATE_AGORA_TOKEN'\n | 'REFRESH_AGORA_TOKEN'\n | 'CREATE_AMBASSADOR'\n | 'DELETE_AMBASSADOR'\n | 'UPDATE_AMBASSADOR'\n | 'TRANSLATE'\n | 'CREATE_DISCORD_ROLE'\n | 'VIEW_DISCORD_ROLE'\n | 'CREATE_GEOGUESSER_PLACES'\n | 'HYPERBEAM_LIST_SESSIONS'\n | 'HYPERBEAM_DELETE_SESSIONS'\n | 'ADMIN_VIEW_USERS'\n | 'ADMIN_LANGUAGES'\n | 'ADMIN_AGORA_TOKENS_AUDIT'\n | 'ADMIN_ROLE'\n | 'ADMIN_DIRECT_MESSAGE'\n | 'ADMIN_AMBASSADORS'\n | 'ADMIN_DISCORD_ROLES'\n | 'ADMIN_DISCORD_AUDIT_EVENT'\n | 'ADMIN_DISCUSSION_LANGUAGE'\n | 'ADMIN_DISCUSSION_LANGUAGE_AUDIT_EVENTS'\n | 'ADMIN_USER_FLAGGING'\n | 'ADMIN_GEOGAME_ROUNDS'\n | 'ADMIN_GEOGAME_STATIC_COORDINATES'\n | 'ADMIN_GEOGAME_AUDIT_EVENTS'\n | 'ADMIN_EVENT_GAME_CHAT'\n | 'ADMIN_EVENT_CHAT'\n | 'ADMIN_EVENT_PARTICIPANTS'\n | 'ADMIN_PICTIONARY_AUDIT'\n | 'ADMIN_PICTIONARY_GAMES'\n | 'ADMIN_PICTIONARY_ROUNDS'\n | 'ADMIN_PICTIONARY_GUESS'\n | 'ADMIN_PICTIONARY_WORDS'\n | 'ADMIN_TRANSLATION_AUDIT'\n | 'ADMIN_REDIS_CONSOLE'\n | 'ADMIN_DEBUGGING_CONSOLE'\n | 'CREATE_TRANSCRIPT'\n | 'ADMIN_RECORDINGS'\n | 'HUDDLE_HOST'\nexport type RolesInDb = {\n id?: number | null\n name?: string | null\n permissions?: Permission[] | null\n}\nexport type AddressInfoInDb = {\n country?: string | null\n city?: string | null\n state?: string | null\n address?: string | null\n zip_code?: string | null\n}\nexport type UserProfileRegisterEmail = {\n id?: number | null\n username?: string | null\n image?: string | null\n full_name?: string | null\n country?: string | null\n pronouns?: Pronouns | null\n profile?: TeacherProfileResponse | null\n accent?: string | null\n voice_gender?: string | null\n learning?: LanguageProficiency[] | null\n speaking?: LanguageProficiency[] | null\n status?: UserStatus\n display_name?: string | null\n is_company?: boolean | null\n cefr_level?: string | null\n roles?: RolesInDb[] | null\n plan?: string | null\n email: string\n bio?: string | null\n address?: AddressInfoInDb | null\n completed_onboarding?: boolean | null\n verified?: boolean | null\n date_of_birth?: string | null\n password?: string | null\n registration_code?: string | null\n promotion_code?: string | null\n}\nexport type GuestRegisterUsername = {\n username: string\n status: UserStatus\n}\nexport type UserProfileRegisterPhone = {\n id?: number | null\n username?: string | null\n image?: string | null\n full_name?: string | null\n country?: string | null\n pronouns?: Pronouns | null\n profile?: TeacherProfileResponse | null\n accent?: string | null\n voice_gender?: string | null\n learning?: LanguageProficiency[] | null\n speaking?: LanguageProficiency[] | null\n status?: UserStatus\n display_name?: string | null\n is_company?: boolean | null\n cefr_level?: string | null\n roles?: RolesInDb[] | null\n plan?: string | null\n email?: string | null\n bio?: string | null\n address?: AddressInfoInDb | null\n completed_onboarding?: boolean | null\n verified?: boolean | null\n date_of_birth?: string | null\n phone_number: string\n password: string\n registration_code?: string | null\n}\nexport type GoogleAuthorizationUrlResponse = {\n url: string\n}\nexport type GoogleGetAuthorizationRequest = {\n redirect_url: string\n ext?: object | null\n}\nexport type GoogleRegisterRequest = {\n code: string\n redirect_url: string\n}\nexport type GoogleLoginRequest = {\n code: string\n redirect_url: string\n ext?: object | null\n}\nexport type SyncedEventsResponse = {\n event_count: number\n}\nexport type LoginCred = {\n password: string\n email?: string | null\n phone_number?: string | null\n username?: string | null\n}\nexport type GuestUsernameResponse = {\n username: string\n}\nexport type OwnPublicUserProfile = {\n id?: number | null\n username?: string | null\n image?: string | null\n full_name?: string | null\n country?: string | null\n pronouns?: Pronouns | null\n profile?: TeacherProfileResponse | null\n accent?: string | null\n voice_gender?: string | null\n learning?: LanguageProficiency[] | null\n speaking?: LanguageProficiency[] | null\n status?: UserStatus\n display_name?: string | null\n is_company?: boolean | null\n cefr_level?: string | null\n roles?: RolesInDb[] | null\n plan?: string | null\n email?: string | null\n bio?: string | null\n address?: AddressInfoInDb | null\n completed_onboarding?: boolean | null\n verified?: boolean | null\n date_of_birth?: string | null\n}\nexport type ChangeGuestUserToRealUserRequest = {\n email: string\n}\nexport type VerifyEmailRequest = {\n email: string\n code: string\n}\nexport type VerifyPhoneNumberRequest = {\n phone_number: string\n code: string\n}\nexport type ResendEmailVerificationRequest = {\n email: string\n}\nexport type ResendPhoneNumberVerificationRequest = {\n phone_number: string\n}\nexport type BriefPublicUserProfile = {\n id: number\n username: string\n display_name?: string | null\n full_name?: string | null\n image?: string | null\n}\nexport type UpdateProfileRequest = {\n bio?: string | null\n image?: string | null\n full_name?: string | null\n password?: string | null\n display_name?: string | null\n}\nexport type ResetPasswordUsingEmailStep1Request = {\n email: string\n}\nexport type ResetPasswordUsingEmailStep2Request = {\n code: string\n email: string\n password: string\n}\nexport type BodyOauth2LoginApiV1SdkAuthOauth2LoginPost = {\n grant_type?: string | null\n username: string\n password: string\n scope?: string\n client_id?: string | null\n client_secret?: string | null\n}\nexport type CreateRoleRequest = {\n name: string\n permissions: Permission[]\n}\nexport type ReportUserRequest = {\n user_id: number\n reason: string\n}\nexport type GoalsQuestionnaireDataResponse = {\n goal: string[]\n occupation: {\n [key: string]: string\n }\n interests: string[]\n about_me: string\n country: string\n}\nexport type SsoLoginRequest = {\n redirect_uri: string\n state?: string\n}\nexport type SsoCallbackRequest = {\n code: string\n state: string\n}\nexport type SubmitModuleResultResponse = {\n id: number\n}\nexport type ModuleResult = {\n id: string\n data: object\n}\nexport type SocialAuthResponse = {\n access_token: string\n refresh_token: string\n user_id: number\n}\nexport type SocialProvider = 'GOOGLE' | 'APPLE'\nexport type SocialAuthRequest = {\n token: string\n provider: SocialProvider\n}\nexport const {\n useAuthRegisterEmailMutation,\n useAuthGuestRegisterEmailMutation,\n useAuthRegisterPhoneMutation,\n useAuthRegisterFacebookQuery,\n useLazyAuthRegisterFacebookQuery,\n useAuthLoginFacebookQuery,\n useLazyAuthLoginFacebookQuery,\n useAuthGoogleGetAuthorizationMutation,\n useAuthRegisterGoogleMutation,\n useAuthLoginGoogleMutation,\n useAuthSyncGoogleCalendarMutation,\n useAuthLinkGoogleAccountMutation,\n useAuthLoginMutation,\n useAuthFriendlyUsernameMutation,\n useAuthChangeGuestToUserMutation,\n useAuthVerifyEmailMutation,\n useAuthVerifyPhoneNumberMutation,\n useAuthResendEmailVerificationMutation,\n useAuthResendPhoneNumberVerificationMutation,\n useAuthWhoamiQuery,\n useLazyAuthWhoamiQuery,\n useAuthGetPublicProfileQuery,\n useLazyAuthGetPublicProfileQuery,\n useAuthGetPublicUsernameByIdQuery,\n useLazyAuthGetPublicUsernameByIdQuery,\n useAuthUpdateProfileMutation,\n useAuthRefreshJwtAccessTokenMutation,\n useAuthResetPasswordUsingEmailStep1Mutation,\n useAuthResetPasswordUsingEmailStep2Mutation,\n useAuthRefreshRtmTokenMutation,\n useAuthOauth2LoginMutation,\n useAuthCreateRoleMutation,\n useAuthGetRolesQuery,\n useLazyAuthGetRolesQuery,\n useAuthDeleteAccountMutation,\n useAuthCancelDeleteAccountMutation,\n useAuthCheckUsernameQuery,\n useLazyAuthCheckUsernameQuery,\n useAuthFollowUserMutation,\n useAuthUnfollowUserMutation,\n useAuthGetFollowersQuery,\n useLazyAuthGetFollowersQuery,\n useAuthGetFolloweesQuery,\n useLazyAuthGetFolloweesQuery,\n useAuthReportUserMutation,\n useAuthUnreportUserMutation,\n useAuthGetReportedUsersQuery,\n useLazyAuthGetReportedUsersQuery,\n useAuthAvoidUserMutation,\n useAuthUnavoidUserMutation,\n useAuthGetAvoidedUsersQuery,\n useLazyAuthGetAvoidedUsersQuery,\n useAuthGetUserGoalsQuery,\n useLazyAuthGetUserGoalsQuery,\n useAuthSsoLoginMutation,\n useAuthSsoCallbackMutation,\n useModulesSubmitModuleResultUnauthMutation,\n useSocialauthVerifyTokenMutation,\n} = injectedRtkApi\n","import { RootState } from '@app/store'\nimport { createSlice } from '@reduxjs/toolkit'\nimport { api as authApi, PublicUserProfile, TokenResponse } from '@app/services/auto-generated/auth'\nimport { LOGOUT, SET_ACCESS_TOKEN, SET_TOKENS, SET_USER, waitForRehydration } from './auth-actions'\n\ninterface authState {\n user: PublicUserProfile | null\n tokens: TokenResponse | null\n userToVerify: null | { email: string }\n firstTime: null | boolean\n mode: 'english' | 'business'\n}\n\nconst initialState: authState = {\n user: null,\n tokens: null,\n userToVerify: null,\n firstTime: true,\n mode: 'english',\n}\n\nconst authSlice = createSlice({\n name: 'auth',\n initialState,\n reducers: {\n setUserToVerify: (state, { payload }) => {\n state.userToVerify = payload\n },\n setUserFirstTime: (state, { payload }) => {\n state.firstTime = payload\n },\n setMode: (state, { payload }) => {\n state.mode = payload\n },\n },\n extraReducers: (builder) => {\n builder\n .addCase(waitForRehydration.fulfilled, (state) => {})\n .addCase(SET_USER, (state, { payload }) => {\n state.user = payload\n })\n .addCase(SET_TOKENS, (state, { payload }) => {\n state.tokens = payload\n })\n .addCase(SET_ACCESS_TOKEN, (state, { payload }) => {\n if (state.tokens) {\n state.tokens.access_token = payload\n } else {\n state.tokens = { access_token: payload }\n }\n })\n .addCase(LOGOUT, () => {\n return { ...initialState, firstTime: false }\n })\n .addMatcher(authApi.endpoints.authWhoami.matchFulfilled, (state, { payload }) => {\n state.user = payload\n })\n .addMatcher(authApi.endpoints.authLogin.matchFulfilled, (state, { payload }) => {\n state.tokens = payload\n })\n .addMatcher(authApi.endpoints.authLoginGoogle.matchFulfilled, (state, { payload }) => {\n state.tokens = payload\n })\n .addMatcher(authApi.endpoints.authRegisterEmail.matchFulfilled, (state, { payload }) => {\n state.tokens = payload\n })\n },\n})\n\nexport default authSlice.reducer\n\nexport const { setUserToVerify, setUserFirstTime, setMode } = authSlice.actions\n\nexport const selectUser = (state: RootState) => state.auth.user\nexport const selectTokens = (state: RootState) => state.auth.tokens\nexport const selectUserToVerify = (state: RootState) => state.auth.userToVerify\nexport const selectUserFirstTime = (state: RootState) => state.auth.firstTime\nexport const selectMode = (state: RootState) => state.auth.mode\n","import { createSlice } from '@reduxjs/toolkit'\n\nconst initialState = {\n toasts: [],\n}\n\nconst toastsSlice = createSlice({\n name: 'toasts',\n initialState,\n reducers: {\n toast: (state, action) => {\n let { message, severity } = action.payload\n if (!severity) {\n severity = 'info'\n }\n state.toasts = [...state.toasts, { message, severity, key: new Date().getTime() }]\n },\n setToasts: (state, action) => {\n state.toasts = action.payload\n },\n },\n})\n\nexport const { toast, setToasts } = toastsSlice.actions\n\nexport default toastsSlice.reducer\n","import { createSlice } from '@reduxjs/toolkit'\nimport { RootState } from '@app/store'\n\nconst initialState = {\n uploadProgress: 0,\n recordingStatus: false,\n newRecordingFetching: false,\n tutorialVideoModalOpen: false,\n}\n\nexport const globalSlice = createSlice({\n name: 'globalSlice',\n initialState,\n reducers: {\n setUploadProgress: (state, action) => {\n return {\n ...state,\n uploadProgress: action.payload,\n }\n },\n setRecordingStatus: (state, action) => {\n return {\n ...state,\n recordingStatus: action.payload,\n }\n },\n setNewRecordingFetching: (state, action) => {\n return {\n ...state,\n newRecordingFetching: action.payload,\n }\n },\n setTutorialVideoModalOpen: (state, action) => {\n return {\n ...state,\n tutorialVideoModalOpen: action.payload,\n }\n },\n },\n})\n\nexport const {\n setUploadProgress,\n setRecordingStatus,\n setNewRecordingFetching,\n setTutorialVideoModalOpen,\n} = globalSlice.actions\nexport const selectUploadProgress = (state: RootState) => state.recordings.uploadProgress\nexport const selectRecordingStatus = (state: RootState) => state.recordings.recordingStatus\nexport const selectnewRecordingFetching = (state: RootState) =>\n state.recordings.newRecordingFetching\nexport const selectTutorialVideoModalOpen = (state: RootState) =>\n state.recordings.tutorialVideoModalOpen\nexport default globalSlice.reducer\n","import { combineReducers, configureStore } from '@reduxjs/toolkit'\nimport { baseApi } from '../services/api'\nimport { api as graphqlApi } from '../services/graphql-api'\nimport { persistReducer, FLUSH, REHYDRATE, PAUSE, PERSIST, PURGE, REGISTER } from 'redux-persist'\nimport storage from 'redux-persist/lib/storage'\nimport { createReduxEnhancer } from '@sentry/react'\nimport themeReducer from '@features/theme/theme.slice'\nimport authReducer from '@features/auth/auth-slice'\nimport toastReducer from '@features/toast/toast.slice'\nimport recordingsReducer from '@features/recordings/recordings.slice'\nimport { DEV } from '@config'\n\nconst persistConfig = {\n key: 'root',\n version: 1,\n storage,\n whitelist: ['theme', 'languages'],\n}\n\nconst rootReducer = combineReducers({\n [baseApi.reducerPath]: baseApi.reducer,\n [graphqlApi.reducerPath]: graphqlApi.reducer,\n auth: persistReducer(\n {\n key: 'auth',\n storage,\n whitelist: ['user', 'tokens', 'firstTime', 'mode'],\n },\n authReducer,\n ),\n toast: toastReducer,\n theme: themeReducer,\n // inventory: persistReducer(\n // {\n // key: 'inventory',\n // storage,\n // },\n // inventoryReducer,\n // ),\n recordings: recordingsReducer,\n})\n\nconst sentryReduxEnhancer = createReduxEnhancer({\n // Optionally pass options listed below\n})\n\nexport const store = configureStore({\n reducer: persistReducer(persistConfig, rootReducer),\n devTools: DEV,\n middleware: (getDefaultMiddleware) =>\n getDefaultMiddleware({\n serializableCheck: {\n // Ignore these action types\n ignoredActions: [FLUSH, REHYDRATE, PAUSE, PERSIST, PURGE, REGISTER],\n // Ignore these field paths in all actions\n // ignoredActionPaths: [\"meta.arg\",\"whiteboard.room\"],\n // Ignore these paths in the state\n // ignoredPaths: ['whiteboard.room'],\n },\n })\n .concat(baseApi.middleware)\n .concat(graphqlApi.middleware)\n .concat(({ dispatch, getState }) => (next) => (action) => {\n if (action.type === 'auth/logout') {\n // When LOGOUT action is detected, dispatch the api util action to reset API state\n dispatch(baseApi.util.resetApiState())\n }\n return next(action)\n }),\n enhancers: [sentryReduxEnhancer],\n})\n\n// Infer the `RootState` and `AppDispatch` types from the store itself\nexport type RootState = ReturnType\n// Inferred type: {posts: PostsState, comments: CommentsState, users: UsersState}\nexport type AppDispatch = typeof store.dispatch\n","// auth routes\nexport const MAIN_ROUTE = '/'\nexport const LOGIN_ROUTE = '/login'\nexport const SIMPLE_LOGIN_ROUTE = '/slogin'\nexport const REGISTER_ROUTE = '/register'\nexport const VERIFY_ROUTE = '/verify'\nexport const LOGIN_AS_GUEST_ROUTE = '/login_as_guest'\nexport const TRY_PENGGUIN_ROUTE = '/try_pengguin'\nexport const FORGET_ROUTE = '/forget_password'\nexport const REGISTER_COMPANY_ROUTE = '/company/start'\n\n// app routes\nexport const PROFILE_ROUTE = '/profile'\nexport const SETTINGS_ROUTE = `${PROFILE_ROUTE}/settings`\nexport const BIO_ROUTE = `${PROFILE_ROUTE}/my-teacher-bio`\nexport const CUSTOM_OPTION_ROUTE = `${PROFILE_ROUTE}/custom-options`\nexport const TEACHER_PRICES = `${PROFILE_ROUTE}/teacher-prices`\nexport const TEACHER_AFFILIATION_OFFERS = `${PROFILE_ROUTE}/affliation-offers`\nexport const TEACHER_CONNECT_ROUTE = `${PROFILE_ROUTE}/teacher-connect`\nexport const FEEDBACK_SERVICES_ROUTE = `${PROFILE_ROUTE}/feedback-services`\nexport const VIDEO_ROUTE = `${PROFILE_ROUTE}/my-videos`\nexport const PERSONAL_ROUTE = `${PROFILE_ROUTE}/personal-information`\nexport const LANGUAGES_ROUTE = `${PROFILE_ROUTE}/languages`\nexport const BENEFIT = `${PROFILE_ROUTE}/invite-your-friends`\nexport const AVAILABILITY_ROUTE = `${PROFILE_ROUTE}/availability`\nexport const SUBSCRIPTION_ROUTE = `${PROFILE_ROUTE}/subscription`\nexport const PROFILE_NOTIFICATION_ROUTE = `${PROFILE_ROUTE}/notification`\n\nexport const PREFERRED_TEACHER = `${PROFILE_ROUTE}/group-settings`\n\nexport const DASHBOARD_ROUTE = '/dashboard'\nexport const OVERVIEW_ROUTE = '/dashboard/overview'\nexport const NOTES_ROUTE = '/dashboard/notes'\nexport const DOCUMENTS_ROUTE = '/dashboard/documents'\nexport const VOCABULARY_ROUTE = '/dashboard/vocabulary'\nexport const LIVE_BOARDS_ROUTE = '/dashboard/live_boards'\nexport const WEBLINKS_ROUTE = '/dashboard/weblinks'\nexport const FEEDBACK_ROUTE = '/dashboard/feedback'\nexport const SUMMARY_ROUTE = '/dashboard/summary'\nexport const MODE_SELECTION_ROUTE = '/mode-selection'\nexport const QUIZ_BUSINESS_ROUTE = '/quiz-business'\nexport const COMPANY_ACCOUNT_ROUTE = '/company/account'\n\nexport const COMMUNITY_ROUTE = '/community'\nexport const USERNAME_ROUTE = (username: any) => `/user/${username}`\nexport const BOOKING_ROUTE = '/booking'\nexport const MY_CLASSROOMS_ROUTE = '/events'\nexport const INVENTORY_ROUTE = '/inventory'\nexport const EVENT_ROUTE = '/classroom'\nexport const DEMO_ROUTE = '/demo'\nexport const EVENT = (id: any) => `/classroom/${id}`\nexport const NEXT_EVENT = '/live'\nexport const FIND_A_TEACHER_ROUTE = 'find-a-teacher'\nexport const RECORDINGS_ROUTE = '/dashboard/recordings'\nexport const TESTMYSELF_ROUTE = '/dashboard/test-myself'\nexport const QUIZ_VOCAB_ROUTE = '/dashboard/quiz-vocabulary'\n// Dashboard Admin\nexport const STATISTIC_ROUTE = '/dashboard/performance'\nexport const USAGE_ROUTE = '/dashboard/usage'\nexport const TABLE_VIEW_ROUTE = '/dashboard/table-view'\n\nexport const GROUP_LESSON_ROUTE = (id: any) => `/group-lesson/${id}`\nexport const PRICING_ROUTE = '/pricing'\nexport const PAYMENT_ROUTE = '/payment'\nexport const CHECKOUT_SUCCESS_ROUTE = '/checkout/success'\n\nexport const PREFERRED_ACCENT_ROUTE = `${PROFILE_ROUTE}/preferred-accent`\n\n// external\nexport const FEEDBACK = 'https://feedback.pengguin.com'\nexport const BLOG = 'https://www.pengguin.com/blog'\nexport const FOR_SCHOOLS = 'https://www.languagegames.co/interplay'\nexport const TERMS_OF_USE =\n 'https://ispeak.notion.site/Terms-and-Conditions-a07be00c0cb14e728bf66988141055c2?pvs=4'\nexport const PRIVACY_POLICY =\n 'https://pengg.notion.site/I-SPEAK-Privacy-Policy-8253f7935d3f4e2bb2176f34c7b0a13b'\n","import { Card, Box, Chip, styled, Typography } from '@mui/material'\n\nexport const CardWrapper = styled(Card, {\n shouldForwardProp: (prop) => prop !== 'fullWidth' && prop !== 'backgroundColor',\n})<{ background: string; fullWidth?: boolean }>(({ fullWidth, background }) => ({\n background: background,\n borderRadius: '20px',\n width: fullWidth ? '100%' : '350px',\n maxWidth: '100%',\n display: 'flex',\n flexDirection: 'column',\n height: '250px',\n}))\n\nexport const Header = styled(Box)({\n display: 'flex',\n justifyContent: 'flex-start',\n width: '100%',\n})\n\nexport const StyledChip = styled(Chip, {\n shouldForwardProp: (prop) => prop !== 'background',\n})<{ background: string }>(({ background }) => ({\n color: 'white',\n background,\n minWidth: 60,\n verticalAlign: 'baseline',\n}))\n","export type Proficiency = 0 | 1 | 2 | 3 | 4\nexport type ResolvedProficiency = 'Beginner' | 'Medium' | 'Advanced' | 'Native' | 'All levels'\n\nconst resolveProficiency = (proficiency: Proficiency): ResolvedProficiency => {\n switch (proficiency) {\n case 0:\n return 'Beginner'\n case 1:\n return 'Medium'\n case 2:\n return 'Advanced'\n case 3:\n return 'Native'\n case 4:\n return 'All levels'\n default:\n return 'Native'\n }\n}\nexport { resolveProficiency }\n","import React, { Children, MouseEventHandler } from 'react'\nimport { Box, Typography, IconButton, CardActionArea, Stack, CardProps } from '@common/components'\nimport { CardWrapper, Header, StyledChip } from './event-card.styles'\nimport { resolveProficiency, Proficiency } from '@common/utils/resolve-proficiency'\nimport { ModeEditOutlineOutlinedIcon, OnlinePredictionIcon, ShareOutlinedIcon } from '@common/icons'\nimport { alpha } from '@common/utils/styles'\n\ntype EventCardProps = CardProps & {\n title?: string\n host: {\n name: string\n image?: string\n }\n language?: string\n level?: Proficiency\n background?: string\n color?: string\n tags?: string[]\n status: 'live' | 'upcoming'\n fullWidth?: boolean\n onClick?: MouseEventHandler\n onDetailsClick?: MouseEventHandler\n onShareClick?: MouseEventHandler\n component?: any\n to?: string\n clickable?: boolean\n}\n\nconst EventCard = React.forwardRef((props, ref) => {\n const {\n host,\n status,\n color = '#fff',\n background = 'linear-gradient(#b651ff,#6E51FF)',\n title,\n language,\n level,\n tags,\n fullWidth = false,\n onClick,\n onDetailsClick,\n onShareClick,\n clickable = true,\n ...restProps\n } = props\n\n return (\n \n \n
\n {status === 'live' && (\n \n \n \n Live\n \n \n )}\n \n {/* TODO ADD DATE LAST OPENED */}\n \n {onDetailsClick !== undefined && (\n \n \n \n )}\n {onShareClick !== undefined && (\n \n \n \n )}\n \n \n
\n \n \n \n {title}\n \n \n \n {host.name}\n \n \n \n \n \n {level !== undefined && (\n {resolveProficiency(level)} }\n />\n )}\n {Array.isArray(tags) &&\n tags.map((elem, k) => (\n {elem} }\n />\n ))}\n \n \n
\n \n \n
\n )\n})\n\nEventCard.displayName = 'EventCard'\n\nexport default EventCard\n\nconst ControlledCardActionArea = (props) => {\n const { clickable, children, ...restProps } = props\n if (!clickable) return {children}\n else return {children}\n}\n","import { styled, Typography, Box, Paper } from '@mui/material'\n\nexport const ChatContainer = styled(Paper, {\n shouldForwardProp: (prop) => prop !== 'fullScreen',\n})(({ fullScreen }) => ({\n borderRadius: fullScreen ? 0 : '10px 0 0 10px',\n padding: '10px 6px',\n width: fullScreen ? '100%' : '300px',\n height: fullScreen ? '100%' : '400px',\n display: 'flex',\n flexDirection: 'column',\n}))\n\nexport const ChatHistory = styled(Box)({\n padding: '0 8px',\n overflowY: 'scroll',\n flex: 1,\n})\n\nexport const ChatMessageContainer = styled(Box)(({ position }) => ({\n display: 'flex',\n alignItems: 'center',\n justifyContent: position === 'left' ? 'flex-start' : 'flex-end',\n}))\n\nexport const MessageTypoContainer = styled(Box)(({ backgroundColor }) => ({\n backgroundColor,\n width: '170px',\n borderRadius: '5px',\n padding: '8px 4px',\n display: 'block',\n height: '100%',\n}))\n\nexport const MessageTypo = styled(Typography)({\n color: 'white',\n fontWeight: 400,\n wordBreak: 'break-word',\n})\n\nexport const LoadingOrErrorContainer = styled(Typography)({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n height: '100%',\n})\n","import React from 'react'\n\nconst useToggle = (initialState: boolean) => {\n const [open, setOpen] = React.useState(initialState)\n\n const handleOpen = () => {\n setOpen(true)\n }\n\n const handleClose = () => {\n setOpen(false)\n }\n\n const handleToggle = () => {\n setOpen(!open)\n }\n\n return { open, handleOpen, handleClose, handleToggle }\n}\n\nexport default useToggle\n","import { TypedUseSelectorHook, useDispatch, useSelector } from 'react-redux'\nimport type { RootState, AppDispatch } from '@app/store'\n\n// Use throughout your app instead of plain `useDispatch` and `useSelector`\nexport const useAppDispatch = () => useDispatch()\nexport const useAppSelector: TypedUseSelectorHook = useSelector\n","import { baseApi as api } from '../api'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n modulesSubmitModuleResult: build.mutation<\n ModulesSubmitModuleResultApiResponse,\n ModulesSubmitModuleResultApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/modules/module/submit`,\n method: 'POST',\n body: queryArg.moduleResult,\n }),\n }),\n modulesSubmitModuleResultUnauth: build.mutation<\n ModulesSubmitModuleResultUnauthApiResponse,\n ModulesSubmitModuleResultUnauthApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/modules/module/unauth/submit`,\n method: 'POST',\n body: queryArg.moduleResult,\n }),\n }),\n modulesGetUserModules: build.query<\n ModulesGetUserModulesApiResponse,\n ModulesGetUserModulesApiArg\n >({\n query: () => ({ url: `/api/v1/extensions/modules/user` }),\n }),\n modulesGetUserModuleResults: build.query<\n ModulesGetUserModuleResultsApiResponse,\n ModulesGetUserModuleResultsApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/modules/module/results`,\n params: {\n module_id: queryArg.moduleId,\n limit: queryArg.limit,\n offset: queryArg.offset,\n order_by: queryArg.orderBy,\n order: queryArg.order,\n },\n }),\n }),\n modulesGetModuleByModuleId: build.query<\n ModulesGetModuleByModuleIdApiResponse,\n ModulesGetModuleByModuleIdApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/modules/module/${queryArg.moduleId}`,\n params: { language: queryArg.language },\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type ModulesSubmitModuleResultApiResponse =\n /** status 201 Successful Response */ SubmitModuleResultResponse\nexport type ModulesSubmitModuleResultApiArg = {\n moduleResult: ModuleResult\n}\nexport type ModulesSubmitModuleResultUnauthApiResponse =\n /** status 201 Successful Response */ SubmitModuleResultResponse\nexport type ModulesSubmitModuleResultUnauthApiArg = {\n moduleResult: ModuleResult\n}\nexport type ModulesGetUserModulesApiResponse =\n /** status 200 Successful Response */ UserModulesResponse\nexport type ModulesGetUserModulesApiArg = void\nexport type ModulesGetUserModuleResultsApiResponse =\n /** status 200 Successful Response */ ModuleResultDbModel[]\nexport type ModulesGetUserModuleResultsApiArg = {\n moduleId?: string | null\n limit?: number | null\n offset?: number | null\n orderBy?: string | null\n order?: string | null\n}\nexport type ModulesGetModuleByModuleIdApiResponse =\n /** status 200 Successful Response */ ModuleInDb | null\nexport type ModulesGetModuleByModuleIdApiArg = {\n moduleId: string\n language?: any\n}\nexport type SubmitModuleResultResponse = {\n id: number\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type ModuleResult = {\n id: string\n data: object\n}\nexport type UserModulesResponse = {\n required: string[]\n submitted: string[]\n optional: string[]\n}\nexport type ModuleResultDbModel = {\n id: number\n module_id: number\n module_result?: object | null\n validator_user_id?: number | null\n created_at?: string\n updated_at?: string\n}\nexport type ModuleInDb = {\n id: number\n module_id: string\n config: object\n config_validator: object\n module_validator: object\n}\nexport const {\n useModulesSubmitModuleResultMutation,\n useModulesSubmitModuleResultUnauthMutation,\n useModulesGetUserModulesQuery,\n useLazyModulesGetUserModulesQuery,\n useModulesGetUserModuleResultsQuery,\n useLazyModulesGetUserModuleResultsQuery,\n useModulesGetModuleByModuleIdQuery,\n useLazyModulesGetModuleByModuleIdQuery,\n} = injectedRtkApi\n","import { baseApi as api } from '../api'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n affiliateGetCoupons: build.query({\n query: () => ({ url: `/api/v1/extensions/affiliate/coupons` }),\n }),\n affiliateGetAffiliates: build.query<\n AffiliateGetAffiliatesApiResponse,\n AffiliateGetAffiliatesApiArg\n >({\n query: () => ({ url: `/api/v1/extensions/affiliate/affiliate` }),\n }),\n affiliateCreateAffiliate: build.mutation<\n AffiliateCreateAffiliateApiResponse,\n AffiliateCreateAffiliateApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/affiliate/affiliate`,\n method: 'POST',\n body: queryArg.createAffiliateRequest,\n }),\n }),\n affiliateGetAffiliate: build.query<\n AffiliateGetAffiliateApiResponse,\n AffiliateGetAffiliateApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/affiliate/affiliate/${queryArg.affiliateId}`,\n }),\n }),\n affiliateDeleteAffiliate: build.mutation<\n AffiliateDeleteAffiliateApiResponse,\n AffiliateDeleteAffiliateApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/affiliate/affiliate/${queryArg.affiliateId}`,\n method: 'DELETE',\n }),\n }),\n affiliateApplyPromotionCode: build.mutation<\n AffiliateApplyPromotionCodeApiResponse,\n AffiliateApplyPromotionCodeApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/affiliate/affiliate/apply`,\n method: 'POST',\n body: queryArg.applyPromotionRequest,\n }),\n }),\n affiliateGetPromotions: build.query<\n AffiliateGetPromotionsApiResponse,\n AffiliateGetPromotionsApiArg\n >({\n query: () => ({ url: `/api/v1/extensions/affiliate/promotions` }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type AffiliateGetCouponsApiResponse = /** status 200 Successful Response */ CouponResponse[]\nexport type AffiliateGetCouponsApiArg = void\nexport type AffiliateGetAffiliatesApiResponse =\n /** status 200 Successful Response */ GetAffiliateResponse[]\nexport type AffiliateGetAffiliatesApiArg = void\nexport type AffiliateCreateAffiliateApiResponse =\n /** status 201 Successful Response */ CreateAffiliateResponse\nexport type AffiliateCreateAffiliateApiArg = {\n createAffiliateRequest: CreateAffiliateRequest\n}\nexport type AffiliateGetAffiliateApiResponse = /** status 200 Successful Response */ any\nexport type AffiliateGetAffiliateApiArg = {\n affiliateId: number\n}\nexport type AffiliateDeleteAffiliateApiResponse = /** status 200 Successful Response */ any\nexport type AffiliateDeleteAffiliateApiArg = {\n affiliateId: number\n}\nexport type AffiliateApplyPromotionCodeApiResponse = /** status 201 Successful Response */ any\nexport type AffiliateApplyPromotionCodeApiArg = {\n applyPromotionRequest: ApplyPromotionRequest\n}\nexport type AffiliateGetPromotionsApiResponse =\n /** status 200 Successful Response */ GetUsePromotionResponse[]\nexport type AffiliateGetPromotionsApiArg = void\nexport type CouponResponse = {\n id: number\n coupon_type: string\n coupon_value: number\n}\nexport type CouponTargetEnum = 'subscription' | 'lesson'\nexport type GetCouponResponse = {\n id: number\n coupon_type: string\n coupon_value: number\n}\nexport type GetPromotionResponse = {\n id: number\n username?: string | null\n}\nexport type GetAffiliateResponse = {\n id: number\n user_limit?: number | null\n expiration_date?: string | null\n target: CouponTargetEnum\n coupon?: GetCouponResponse | null\n promotions?: GetPromotionResponse[] | null\n use_count: number\n code: string\n created_at: string\n}\nexport type CreateAffiliateResponse = {\n id: number\n coupon_id: number\n user_limit?: number | null\n expiration_date?: string | null\n target: CouponTargetEnum\n code: string\n company_name?: string | null\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type CreateAffiliateRequest = {\n coupon_id: number\n user_limit?: number | null\n expiration_date?: string | null\n target: CouponTargetEnum\n company_name?: string | null\n}\nexport type ApplyPromotionRequest = {\n promotion_code: string\n}\nexport type UserCouponResponse = {\n id: number\n coupon: GetCouponResponse\n target: CouponTargetEnum\n code: string\n}\nexport type GetUsePromotionResponse = {\n id: number\n coupon_user: UserCouponResponse\n}\nexport const {\n useAffiliateGetCouponsQuery,\n useLazyAffiliateGetCouponsQuery,\n useAffiliateGetAffiliatesQuery,\n useLazyAffiliateGetAffiliatesQuery,\n useAffiliateCreateAffiliateMutation,\n useAffiliateGetAffiliateQuery,\n useLazyAffiliateGetAffiliateQuery,\n useAffiliateDeleteAffiliateMutation,\n useAffiliateApplyPromotionCodeMutation,\n useAffiliateGetPromotionsQuery,\n useLazyAffiliateGetPromotionsQuery,\n} = injectedRtkApi\n","import { api as affiliateApi } from './auto-generated/affiliate'\n\naffiliateApi.enhanceEndpoints({\n endpoints: {},\n})\n\nexport { affiliateApi }\n","import { baseApi as api } from '../api'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n agoraIssueRtcToken: build.query({\n query: (queryArg) => ({\n url: `/api/v1/extensions/agora/rtc/${queryArg.roomId}`,\n params: { screen_share: queryArg.screenShare },\n }),\n }),\n agoraCreateNewRtcRoom: build.mutation<\n AgoraCreateNewRtcRoomApiResponse,\n AgoraCreateNewRtcRoomApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/agora/rtc/${queryArg.eventId}`,\n method: 'POST',\n params: { room_type: queryArg.roomType },\n }),\n }),\n agoraGetRtcRooms: build.query({\n query: (queryArg) => ({ url: `/api/v1/extensions/agora/rtc/${queryArg.eventId}/rooms` }),\n }),\n agoraGetRtcConfig: build.query({\n query: (queryArg) => ({ url: `/api/v1/extensions/agora/rtc/${queryArg.eventId}/config` }),\n }),\n agoraIssueRtmToken: build.query({\n query: () => ({ url: `/api/v1/extensions/agora/rtm` }),\n }),\n agoraCreateNewRoom: build.mutation({\n query: (queryArg) => ({\n url: `/api/v1/extensions/agora/room/${queryArg.eventId}`,\n method: 'POST',\n params: { activity_type: queryArg.activityType },\n }),\n }),\n agoraGetRoom: build.query({\n query: (queryArg) => ({\n url: `/api/v1/extensions/agora/room/${queryArg.roomId}`,\n params: { activity_type: queryArg.activityType },\n }),\n }),\n agoraGetRooms: build.query({\n query: () => ({ url: `/api/v1/extensions/agora/rooms` }),\n }),\n agoraSetEventCurrentRoom: build.mutation<\n AgoraSetEventCurrentRoomApiResponse,\n AgoraSetEventCurrentRoomApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/agora/set_current_room`,\n method: 'POST',\n body: queryArg.roomRequest,\n }),\n }),\n agoraSendUserRoom: build.mutation({\n query: (queryArg) => ({\n url: `/api/v1/extensions/agora/send/user/room`,\n method: 'POST',\n body: queryArg.sendUserToRoomRequest,\n }),\n }),\n agoraIssueLivekitToken: build.query<\n AgoraIssueLivekitTokenApiResponse,\n AgoraIssueLivekitTokenApiArg\n >({\n query: (queryArg) => ({ url: `/api/v1/extensions/agora/livekit/${queryArg.roomId}` }),\n }),\n agoraHandleLivekitWebhook: build.mutation<\n AgoraHandleLivekitWebhookApiResponse,\n AgoraHandleLivekitWebhookApiArg\n >({\n query: () => ({ url: `/api/v1/extensions/agora/livekit/webhook`, method: 'POST' }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type AgoraIssueRtcTokenApiResponse = /** status 200 Successful Response */ Token\nexport type AgoraIssueRtcTokenApiArg = {\n roomId: string\n screenShare?: boolean\n}\nexport type AgoraCreateNewRtcRoomApiResponse = /** status 201 Successful Response */ RtcRoomDbModel\nexport type AgoraCreateNewRtcRoomApiArg = {\n eventId: string\n roomType?: RoomType\n}\nexport type AgoraGetRtcRoomsApiResponse = /** status 200 Successful Response */ RtcRoomDbModel[]\nexport type AgoraGetRtcRoomsApiArg = {\n eventId: string\n}\nexport type AgoraGetRtcConfigApiResponse = /** status 200 Successful Response */ any\nexport type AgoraGetRtcConfigApiArg = {\n eventId: string\n}\nexport type AgoraIssueRtmTokenApiResponse = /** status 200 Successful Response */ Token\nexport type AgoraIssueRtmTokenApiArg = void\nexport type AgoraCreateNewRoomApiResponse =\n /** status 201 Successful Response */ CreateEventRoomResponse\nexport type AgoraCreateNewRoomApiArg = {\n eventId: string\n activityType?: GameType\n}\nexport type AgoraGetRoomApiResponse =\n /** status 200 Successful Response */ AgoraWhiteBoardRoomResponse\nexport type AgoraGetRoomApiArg = {\n roomId: string\n activityType?: GameType\n}\nexport type AgoraGetRoomsApiResponse = /** status 200 Successful Response */ any\nexport type AgoraGetRoomsApiArg = void\nexport type AgoraSetEventCurrentRoomApiResponse =\n /** status 201 Successful Response */ ChangeEventRoomResponse\nexport type AgoraSetEventCurrentRoomApiArg = {\n roomRequest: RoomRequest\n}\nexport type AgoraSendUserRoomApiResponse = /** status 201 Successful Response */ any\nexport type AgoraSendUserRoomApiArg = {\n sendUserToRoomRequest: SendUserToRoomRequest\n}\nexport type AgoraIssueLivekitTokenApiResponse = /** status 200 Successful Response */ Token\nexport type AgoraIssueLivekitTokenApiArg = {\n roomId: string\n}\nexport type AgoraHandleLivekitWebhookApiResponse = /** status 200 Successful Response */ any\nexport type AgoraHandleLivekitWebhookApiArg = void\nexport type Token = {\n token: string\n expiration_time?: string | null\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type RoomType = 'rtc' | 'chat'\nexport type RtcRoomDbModel = {\n id: number\n room_uuid?: string | null\n event_id?: number | null\n creator_id?: number | null\n created_at?: string\n updated_at?: string\n is_main?: boolean\n room_type?: RoomType\n}\nexport type CreateEventRoomResponse = {\n room_id: string\n}\nexport type GameType =\n | 'NONE'\n | 'GEO_GAME'\n | 'CAPTION_THIS'\n | 'HYPERBEAM'\n | 'PICTIONARY'\n | 'JUST_CHAT'\n | 'JKLM_FUN'\n | 'DISCUSSION'\n | 'WHITEBOARD'\n | 'CHAT'\n | 'GROUP_LESSON'\nexport type AgoraWhiteBoardRoomResponse = {\n room_uuid: string\n room_token?: Token | null\n}\nexport type ChangeEventRoomResponse = {\n id: number\n current_room_id: string\n event_id: string\n}\nexport type RoomRequest = {\n room_id: string\n}\nexport type SendUserToRoomRequest = {\n room_id: number\n user_id?: number | null\n}\nexport const {\n useAgoraIssueRtcTokenQuery,\n useLazyAgoraIssueRtcTokenQuery,\n useAgoraCreateNewRtcRoomMutation,\n useAgoraGetRtcRoomsQuery,\n useLazyAgoraGetRtcRoomsQuery,\n useAgoraGetRtcConfigQuery,\n useLazyAgoraGetRtcConfigQuery,\n useAgoraIssueRtmTokenQuery,\n useLazyAgoraIssueRtmTokenQuery,\n useAgoraCreateNewRoomMutation,\n useAgoraGetRoomQuery,\n useLazyAgoraGetRoomQuery,\n useAgoraGetRoomsQuery,\n useLazyAgoraGetRoomsQuery,\n useAgoraSetEventCurrentRoomMutation,\n useAgoraSendUserRoomMutation,\n useAgoraIssueLivekitTokenQuery,\n useLazyAgoraIssueLivekitTokenQuery,\n useAgoraHandleLivekitWebhookMutation,\n} = injectedRtkApi\n","import { baseApi as api } from '../api'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n eventGetEventConfig: build.query({\n query: (queryArg) => ({ url: `/api/v1/sdk/event/${queryArg.eventId}/config` }),\n }),\n eventScheduleEvent: build.mutation({\n query: (queryArg) => ({\n url: `/api/v1/sdk/event/event`,\n method: 'POST',\n body: queryArg.scheduleEventRequest,\n }),\n }),\n eventJoinEvent: build.mutation({\n query: (queryArg) => ({\n url: `/api/v1/sdk/event/event/${queryArg.eventId}/join`,\n method: 'POST',\n params: { exit_: queryArg.exit },\n }),\n }),\n eventExitEvent: build.mutation({\n query: (queryArg) => ({\n url: `/api/v1/sdk/event/event/${queryArg.eventId}/exit`,\n method: 'POST',\n }),\n }),\n eventGetCurrentEvent: build.query({\n query: () => ({ url: `/api/v1/sdk/event/event/current` }),\n }),\n eventGetEvents: build.query({\n query: (queryArg) => ({\n url: `/api/v1/sdk/event/events`,\n params: {\n event_type: queryArg.eventType,\n event_languages: queryArg.eventLanguages,\n start_time_utc: queryArg.startTimeUtc,\n end_time_utc: queryArg.endTimeUtc,\n proficiency: queryArg.proficiency,\n limit: queryArg.limit,\n offset: queryArg.offset,\n is_dashboard: queryArg.isDashboard,\n is_live: queryArg.isLive,\n },\n }),\n }),\n eventDeleteEvent: build.mutation({\n query: (queryArg) => ({\n url: `/api/v1/sdk/event/event/${queryArg.eventId}`,\n method: 'DELETE',\n }),\n }),\n eventGetEventById: build.query({\n query: (queryArg) => ({ url: `/api/v1/sdk/event/event/${queryArg.eventId}` }),\n }),\n eventModifyEvent: build.mutation({\n query: (queryArg) => ({\n url: `/api/v1/sdk/event/event/${queryArg.eventId}`,\n method: 'PUT',\n body: queryArg.updateEventRequest,\n }),\n }),\n eventMuteEvent: build.mutation({\n query: (queryArg) => ({\n url: `/api/v1/sdk/event/event/${queryArg.eventId}/mute`,\n method: 'POST',\n params: { user_id: queryArg.userId, mute_type: queryArg.muteType },\n }),\n }),\n eventUnmuteEvent: build.mutation({\n query: (queryArg) => ({\n url: `/api/v1/sdk/event/event/${queryArg.eventId}/unmute`,\n method: 'POST',\n params: { user_id: queryArg.userId, mute_type: queryArg.muteType },\n }),\n }),\n eventDisableVideoUserEvent: build.mutation<\n EventDisableVideoUserEventApiResponse,\n EventDisableVideoUserEventApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/sdk/event/event/${queryArg.eventId}/disable_video/${queryArg.userId}`,\n method: 'POST',\n }),\n }),\n eventEnableVideoUserEvent: build.mutation<\n EventEnableVideoUserEventApiResponse,\n EventEnableVideoUserEventApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/sdk/event/event/${queryArg.eventId}/enable_video/${queryArg.userId}`,\n method: 'POST',\n }),\n }),\n eventEventLockingRooms: build.mutation<\n EventEventLockingRoomsApiResponse,\n EventEventLockingRoomsApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/sdk/event/event/${queryArg.eventId}/locking`,\n method: 'POST',\n params: { lock: queryArg.lock },\n }),\n }),\n eventParticipateInEvent: build.mutation<\n EventParticipateInEventApiResponse,\n EventParticipateInEventApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/sdk/event/event/${queryArg.eventId}/participate`,\n method: 'POST',\n }),\n }),\n eventDeleteParticipationInEvent: build.mutation<\n EventDeleteParticipationInEventApiResponse,\n EventDeleteParticipationInEventApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/sdk/event/event/${queryArg.eventId}/participate`,\n method: 'DELETE',\n }),\n }),\n eventChangeNativeSpeaker: build.mutation<\n EventChangeNativeSpeakerApiResponse,\n EventChangeNativeSpeakerApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/sdk/event/event/${queryArg.eventId}/change_native_speaker`,\n method: 'POST',\n body: queryArg.changeEventNativeSpeakerRequest,\n }),\n }),\n eventEventAutomaticMatch: build.query<\n EventEventAutomaticMatchApiResponse,\n EventEventAutomaticMatchApiArg\n >({\n query: () => ({ url: `/api/v1/sdk/event/match` }),\n }),\n eventStartNow: build.mutation({\n query: (queryArg) => ({\n url: `/api/v1/sdk/event/event/${queryArg.eventId}/start_now`,\n method: 'POST',\n }),\n }),\n eventPersistTextMessage: build.mutation<\n EventPersistTextMessageApiResponse,\n EventPersistTextMessageApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/sdk/event/event/${queryArg.eventId}/chat`,\n method: 'POST',\n body: queryArg.sendMessageRequest,\n }),\n }),\n eventGetChatMessages: build.query({\n query: (queryArg) => ({\n url: `/api/v1/sdk/event/event/${queryArg.eventId}/chat`,\n params: { limit: queryArg.limit, offset: queryArg.offset },\n }),\n }),\n eventKickUser: build.mutation({\n query: (queryArg) => ({\n url: `/api/v1/sdk/event/event/${queryArg.eventId}/kick`,\n method: 'POST',\n body: queryArg.kickUserRequest,\n }),\n }),\n eventMatchUsers: build.mutation({\n query: (queryArg) => ({\n url: `/api/v1/sdk/event/event/${queryArg.eventId}/match-users`,\n method: 'POST',\n }),\n }),\n eventEndEvent: build.mutation({\n query: (queryArg) => ({\n url: `/api/v1/sdk/event/event/${queryArg.eventId}/end`,\n method: 'POST',\n }),\n }),\n eventGetLastMatch: build.query({\n query: () => ({ url: `/api/v1/sdk/event/user/last-match` }),\n }),\n eventGetTotalEventJoins: build.query<\n EventGetTotalEventJoinsApiResponse,\n EventGetTotalEventJoinsApiArg\n >({\n query: () => ({ url: `/api/v1/sdk/event/user/event-joins` }),\n }),\n eventGetUserMatches: build.query({\n query: () => ({ url: `/api/v1/sdk/event/user/matches` }),\n }),\n eventRecordEventAttendance: build.mutation<\n EventRecordEventAttendanceApiResponse,\n EventRecordEventAttendanceApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/sdk/event/event/${queryArg.eventId}/attendance`,\n method: 'POST',\n }),\n }),\n eventSendWsMessage: build.mutation({\n query: (queryArg) => ({\n url: `/api/v1/sdk/event/send/ws/${queryArg.eventId}`,\n method: 'POST',\n body: queryArg.sendWsMessageRequest,\n }),\n }),\n eventCanJoinEvent: build.query({\n query: (queryArg) => ({ url: `/api/v1/sdk/event/event/${queryArg.eventId}/can-join` }),\n }),\n eventGetHuddleHosts: build.query({\n query: () => ({ url: `/api/v1/sdk/event/huddle-hosts` }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type EventGetEventConfigApiResponse = /** status 200 Successful Response */ EventConfig\nexport type EventGetEventConfigApiArg = {\n eventId: string\n}\nexport type EventScheduleEventApiResponse =\n /** status 201 Successful Response */ CreateNewEventResponse\nexport type EventScheduleEventApiArg = {\n scheduleEventRequest: ScheduleEventRequest\n}\nexport type EventJoinEventApiResponse = /** status 200 Successful Response */ any\nexport type EventJoinEventApiArg = {\n eventId: string\n exit?: boolean\n}\nexport type EventExitEventApiResponse = /** status 200 Successful Response */ any\nexport type EventExitEventApiArg = {\n eventId: string\n}\nexport type EventGetCurrentEventApiResponse =\n /** status 200 Successful Response */ EventResponse | null\nexport type EventGetCurrentEventApiArg = void\nexport type EventGetEventsApiResponse = /** status 200 Successful Response */ EventsFilterResponse\nexport type EventGetEventsApiArg = {\n eventType?: GameType | null\n eventLanguages?: string[]\n startTimeUtc?: string | null\n endTimeUtc?: string | null\n proficiency?: LanguageExperience | null\n limit?: number | null\n offset?: number | null\n isDashboard?: boolean | null\n isLive?: boolean | null\n}\nexport type EventDeleteEventApiResponse = /** status 200 Successful Response */ any\nexport type EventDeleteEventApiArg = {\n eventId: string\n}\nexport type EventGetEventByIdApiResponse = /** status 200 Successful Response */ EventResponse\nexport type EventGetEventByIdApiArg = {\n eventId: string\n}\nexport type EventModifyEventApiResponse = /** status 200 Successful Response */ any\nexport type EventModifyEventApiArg = {\n eventId: string\n updateEventRequest: UpdateEventRequest\n}\nexport type EventMuteEventApiResponse = /** status 200 Successful Response */ any\nexport type EventMuteEventApiArg = {\n eventId: string\n userId?: number | null\n muteType?: MuteTypeEnum | null\n}\nexport type EventUnmuteEventApiResponse = /** status 200 Successful Response */ any\nexport type EventUnmuteEventApiArg = {\n eventId: string\n userId?: number | null\n muteType?: MuteTypeEnum | null\n}\nexport type EventDisableVideoUserEventApiResponse = /** status 200 Successful Response */ any\nexport type EventDisableVideoUserEventApiArg = {\n eventId: string\n userId: number\n}\nexport type EventEnableVideoUserEventApiResponse = /** status 200 Successful Response */ any\nexport type EventEnableVideoUserEventApiArg = {\n eventId: string\n userId: number\n}\nexport type EventEventLockingRoomsApiResponse = /** status 201 Successful Response */ any\nexport type EventEventLockingRoomsApiArg = {\n eventId: string\n lock: boolean\n}\nexport type EventParticipateInEventApiResponse = /** status 201 Successful Response */ any\nexport type EventParticipateInEventApiArg = {\n eventId: string\n}\nexport type EventDeleteParticipationInEventApiResponse = /** status 200 Successful Response */ any\nexport type EventDeleteParticipationInEventApiArg = {\n eventId: string\n}\nexport type EventChangeNativeSpeakerApiResponse = /** status 200 Successful Response */ any\nexport type EventChangeNativeSpeakerApiArg = {\n eventId: string\n changeEventNativeSpeakerRequest: ChangeEventNativeSpeakerRequest\n}\nexport type EventEventAutomaticMatchApiResponse =\n /** status 200 Successful Response */ EventResponse\nexport type EventEventAutomaticMatchApiArg = void\nexport type EventStartNowApiResponse = /** status 200 Successful Response */ any\nexport type EventStartNowApiArg = {\n eventId: string\n}\nexport type EventPersistTextMessageApiResponse = /** status 201 Successful Response */ any\nexport type EventPersistTextMessageApiArg = {\n eventId: string\n sendMessageRequest: SendMessageRequest\n}\nexport type EventGetChatMessagesApiResponse =\n /** status 200 Successful Response */ ChatMessagesResponse[]\nexport type EventGetChatMessagesApiArg = {\n eventId: string\n limit?: number | null\n offset?: number | null\n}\nexport type EventKickUserApiResponse = /** status 200 Successful Response */ any\nexport type EventKickUserApiArg = {\n eventId: string\n kickUserRequest: KickUserRequest\n}\nexport type EventMatchUsersApiResponse = /** status 200 Successful Response */ any\nexport type EventMatchUsersApiArg = {\n eventId: string\n}\nexport type EventEndEventApiResponse = /** status 200 Successful Response */ any\nexport type EventEndEventApiArg = {\n eventId: string\n}\nexport type EventGetLastMatchApiResponse =\n /** status 200 Successful Response */ LastMatchResponse | null\nexport type EventGetLastMatchApiArg = void\nexport type EventGetTotalEventJoinsApiResponse =\n /** status 200 Successful Response */ UserEventJoinsResponse\nexport type EventGetTotalEventJoinsApiArg = void\nexport type EventGetUserMatchesApiResponse =\n /** status 200 Successful Response */ UserMatchesResponse\nexport type EventGetUserMatchesApiArg = void\nexport type EventRecordEventAttendanceApiResponse = /** status 201 Successful Response */ any\nexport type EventRecordEventAttendanceApiArg = {\n eventId: string\n}\nexport type EventSendWsMessageApiResponse = /** status 200 Successful Response */ any\nexport type EventSendWsMessageApiArg = {\n eventId: string\n sendWsMessageRequest: SendWsMessageRequest\n}\nexport type EventCanJoinEventApiResponse = /** status 200 Successful Response */ any\nexport type EventCanJoinEventApiArg = {\n eventId: string\n}\nexport type EventGetHuddleHostsApiResponse = /** status 200 Successful Response */ number[]\nexport type EventGetHuddleHostsApiArg = void\nexport type EventConfig = {\n min_number_users: number\n max_number_users: number\n default_ban_time: number\n non_subscribed_teacher?: object | null\n is_all_audio_muted?: boolean\n is_all_video_muted?: boolean\n are_rooms_locked?: boolean\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type CreateNewEventResponse = {\n event_id: string\n short_event_id: string\n}\nexport type GameType =\n | 'NONE'\n | 'GEO_GAME'\n | 'CAPTION_THIS'\n | 'HYPERBEAM'\n | 'PICTIONARY'\n | 'JUST_CHAT'\n | 'JKLM_FUN'\n | 'DISCUSSION'\n | 'WHITEBOARD'\n | 'CHAT'\n | 'GROUP_LESSON'\nexport type LanguageExperience = 0 | 1 | 2 | 3 | 4\nexport type ScheduleEventRequest = {\n event_language: string\n event_type?: GameType | null\n proficiency?: LanguageExperience | null\n event_description?: string | null\n start_time_utc?: string | null\n end_time_utc?: string | null\n event_title?: string | null\n is_private?: boolean | null\n is_revision?: boolean | null\n tags?: string[] | null\n is_demo?: boolean | null\n duration?: number | null\n}\nexport type Pronouns = 0 | 1 | 2 | 3\nexport type TeacherProfileResponse = {\n bio?: string | null\n experience?: string | null\n tags?: string[] | null\n video_link?: string | null\n teaching_style?: string | null\n price_per_hour?: number | null\n partner?: boolean | null\n is_reviewer?: boolean | null\n}\nexport type LanguageProficiency = {\n language: string\n proficiency: LanguageExperience\n}\nexport type UserStatus = 'STUDENT' | 'TEACHER'\nexport type Permission =\n | 'CREATE_EVENT'\n | 'CREATE_PENGGUIN_EVENT'\n | 'SEND_DIRECT_MESSAGE'\n | 'CREATE_CUSTOM_ROLE'\n | 'SEND_EMAIL_TO_USERS'\n | 'CREATE_GEOGUESSER_GAME'\n | 'JOIN_GEOGUESSER_GAME'\n | 'MAKE_GUESS_GEOGUESSER_GAME'\n | 'MAKE_RATING'\n | 'UPLOAD_FILE'\n | 'DELETE_ACCOUNT'\n | 'MAKE_ROLE'\n | 'ASSIGN_ROLE'\n | 'VIEW_ROLES'\n | 'EDIT_ROLE'\n | 'GENERATE_AGORA_TOKEN'\n | 'REFRESH_AGORA_TOKEN'\n | 'CREATE_AMBASSADOR'\n | 'DELETE_AMBASSADOR'\n | 'UPDATE_AMBASSADOR'\n | 'TRANSLATE'\n | 'CREATE_DISCORD_ROLE'\n | 'VIEW_DISCORD_ROLE'\n | 'CREATE_GEOGUESSER_PLACES'\n | 'HYPERBEAM_LIST_SESSIONS'\n | 'HYPERBEAM_DELETE_SESSIONS'\n | 'ADMIN_VIEW_USERS'\n | 'ADMIN_LANGUAGES'\n | 'ADMIN_AGORA_TOKENS_AUDIT'\n | 'ADMIN_ROLE'\n | 'ADMIN_DIRECT_MESSAGE'\n | 'ADMIN_AMBASSADORS'\n | 'ADMIN_DISCORD_ROLES'\n | 'ADMIN_DISCORD_AUDIT_EVENT'\n | 'ADMIN_DISCUSSION_LANGUAGE'\n | 'ADMIN_DISCUSSION_LANGUAGE_AUDIT_EVENTS'\n | 'ADMIN_USER_FLAGGING'\n | 'ADMIN_GEOGAME_ROUNDS'\n | 'ADMIN_GEOGAME_STATIC_COORDINATES'\n | 'ADMIN_GEOGAME_AUDIT_EVENTS'\n | 'ADMIN_EVENT_GAME_CHAT'\n | 'ADMIN_EVENT_CHAT'\n | 'ADMIN_EVENT_PARTICIPANTS'\n | 'ADMIN_PICTIONARY_AUDIT'\n | 'ADMIN_PICTIONARY_GAMES'\n | 'ADMIN_PICTIONARY_ROUNDS'\n | 'ADMIN_PICTIONARY_GUESS'\n | 'ADMIN_PICTIONARY_WORDS'\n | 'ADMIN_TRANSLATION_AUDIT'\n | 'ADMIN_REDIS_CONSOLE'\n | 'ADMIN_DEBUGGING_CONSOLE'\n | 'CREATE_TRANSCRIPT'\n | 'ADMIN_RECORDINGS'\n | 'HUDDLE_HOST'\nexport type RolesInDb = {\n id?: number | null\n name?: string | null\n permissions?: Permission[] | null\n}\nexport type PublicUserProfile = {\n id?: number | null\n username?: string | null\n image?: string | null\n full_name?: string | null\n country?: string | null\n pronouns?: Pronouns | null\n profile?: TeacherProfileResponse | null\n accent?: string | null\n voice_gender?: string | null\n learning?: LanguageProficiency[] | null\n speaking?: LanguageProficiency[] | null\n status?: UserStatus\n display_name?: string | null\n is_company?: boolean | null\n cefr_level?: string | null\n roles?: RolesInDb[] | null\n plan?: string | null\n}\nexport type GameStatus = 'PENDING' | 'STARTED' | 'FINISHED' | 'CANCELED'\nexport type EventResponse = {\n id: number\n event_id: string\n event_type?: GameType | null\n current_room_id?: string | null\n event_language: string\n event_title?: string | null\n event_description?: string | null\n start_time_utc: string\n end_time_utc?: string | null\n host: PublicUserProfile\n proficiency: LanguageExperience\n participants: PublicUserProfile[]\n users?: PublicUserProfile[] | null\n is_live?: boolean\n short_event_id?: string | null\n status?: GameStatus | null\n is_private?: boolean | null\n tags?: string[] | null\n game_status?: GameStatus | null\n color_attribute?: string | null\n users_partition?: object\n duration?: number | null\n}\nexport type EventsFilterResponse = {\n count: number\n events: EventResponse[]\n}\nexport type UpdateEventRequest = {\n event_type?: GameType | null\n event_language?: string | null\n event_title?: string | null\n event_description?: string | null\n start_time_utc?: string | null\n end_time_utc?: string | null\n proficiency?: LanguageExperience | null\n tags?: string[] | null\n color_attribute?: string | null\n}\nexport type MuteTypeEnum = 'AUDIO' | 'VIDEO' | 'BOTH'\nexport type ChangeEventNativeSpeakerRequest = {\n user_id: number\n}\nexport type SendMessageRequest = {\n text: string\n}\nexport type ChatMessagesResponse = {\n created_at: string\n username: string\n user_id: number\n text: string\n user_image?: string | null\n user_display_name?: string | null\n}\nexport type KickUserRequest = {\n user_id: number\n ban_for_seconds?: number | null\n}\nexport type LastMatchResponse = {\n match_id?: number | null\n matched_user_id?: number | null\n event_id?: number | null\n created_at?: string | null\n}\nexport type UserEventJoinsResponse = {\n total_event_joins: number\n}\nexport type BriefPublicUserProfile = {\n id: number\n username: string\n display_name?: string | null\n full_name?: string | null\n image?: string | null\n}\nexport type MatchResponse = {\n match_id: number\n user_id: number\n matched_user_id: number\n event_id?: number | null\n user_matched_with?: BriefPublicUserProfile | null\n matched_at: string\n created_at: string\n}\nexport type UserMatchesResponse = {\n matches: MatchResponse[]\n}\nexport type EventsEvtType =\n | 'CHANGE_CURRENT_ROOM'\n | 'EXIT_ROOM'\n | 'JOIN_ROOM'\n | 'CAN_START_EVENT'\n | 'CHANGE_NATIVE_SPEAKER'\n | 'CHANGE_ROOM_LANGUAGE'\n | 'START_GAME'\n | 'EVENT_ENDED'\n | 'CAN_START_GAME'\n | 'JOIN_GAME'\n | 'END_GAME'\n | 'CHANGE_HOST'\n | 'CHANGE_EVENT_TYPE'\n | 'EVENT_LIVE'\n | 'CHANGE_WHITEBOARD_ROOM'\n | 'PARTICIPATE_SCHEDULED_EVENT'\n | 'DELETE_PARTICIPATION_IN_SCHEDULED_EVENT'\n | 'RECORDING_IS_READY'\n | 'RAISE_HAND'\n | 'REFRESH'\n | 'LOCK_ROOMS'\n | 'UNLOCK_ROOMS'\nexport type SendWsMessageRequest = {\n event_type: EventsEvtType\n ext: object\n for_user_id?: number | null\n}\nexport const {\n useEventGetEventConfigQuery,\n useLazyEventGetEventConfigQuery,\n useEventScheduleEventMutation,\n useEventJoinEventMutation,\n useEventExitEventMutation,\n useEventGetCurrentEventQuery,\n useLazyEventGetCurrentEventQuery,\n useEventGetEventsQuery,\n useLazyEventGetEventsQuery,\n useEventDeleteEventMutation,\n useEventGetEventByIdQuery,\n useLazyEventGetEventByIdQuery,\n useEventModifyEventMutation,\n useEventMuteEventMutation,\n useEventUnmuteEventMutation,\n useEventDisableVideoUserEventMutation,\n useEventEnableVideoUserEventMutation,\n useEventEventLockingRoomsMutation,\n useEventParticipateInEventMutation,\n useEventDeleteParticipationInEventMutation,\n useEventChangeNativeSpeakerMutation,\n useEventEventAutomaticMatchQuery,\n useLazyEventEventAutomaticMatchQuery,\n useEventStartNowMutation,\n useEventPersistTextMessageMutation,\n useEventGetChatMessagesQuery,\n useLazyEventGetChatMessagesQuery,\n useEventKickUserMutation,\n useEventMatchUsersMutation,\n useEventEndEventMutation,\n useEventGetLastMatchQuery,\n useLazyEventGetLastMatchQuery,\n useEventGetTotalEventJoinsQuery,\n useLazyEventGetTotalEventJoinsQuery,\n useEventGetUserMatchesQuery,\n useLazyEventGetUserMatchesQuery,\n useEventRecordEventAttendanceMutation,\n useEventSendWsMessageMutation,\n useEventCanJoinEventQuery,\n useLazyEventCanJoinEventQuery,\n useEventGetHuddleHostsQuery,\n useLazyEventGetHuddleHostsQuery,\n} = injectedRtkApi\n","import { store } from '@app/store'\nimport { API_BASE_URL } from '@config'\nimport { refreshTokenIfExpired } from '@features/auth/utils/refresh-token-if-expired'\n\nlet ws: WebSocket | null\nlet currentEventId: string | null\nlet listeners = new Set<(ev: MessageEvent) => void>()\n\nconst createSocket = async (\n eventId: string,\n messageListner: (ev: MessageEvent) => void,\n force?: boolean,\n) => {\n await refreshTokenIfExpired()\n console.log('DEBUG', 'createSocket')\n if (!force) {\n listeners.add(messageListner)\n }\n console.log('DEBUG', 'createSocket', messageListner, listeners.size)\n const tokens = store.getState().auth.tokens\n if (!ws || currentEventId !== eventId || force) {\n ws?.close(3000)\n currentEventId = eventId\n ws = new WebSocket(\n `${API_BASE_URL.replace('http', 'ws')}/api/v1/sdk/event/ws?token=${\n tokens?.access_token?.token\n }&event_id=${eventId}`,\n )\n const closeListner = async (event) => {\n console.log(event)\n // TODO: this is just a temporary solution to handle server disconnect, fix later (using short event id length)\n if (event.code !== 3000 && eventId.length !== 4) {\n setTimeout(async () => {\n ws = await createSocket(\n eventId,\n (event_: MessageEvent) => {\n for (const listener of listeners) {\n listener(event_)\n }\n },\n true,\n )\n }, 3000)\n }\n }\n ws.addEventListener('close', closeListner)\n }\n ws.addEventListener('message', messageListner)\n return ws\n}\n\nexport { createSocket }\n","import { API_BASE_URL, DEV } from '@config'\nimport { api as agoraApi } from './auto-generated/agora'\nimport { api as eventApi } from './auto-generated/event'\nimport { createSocket } from './ws'\nimport { refreshTokenIfExpired } from '@features/auth/utils/refresh-token-if-expired'\n\nagoraApi.enhanceEndpoints({\n endpoints: {\n agoraCreateNewRoom: {\n async onQueryStarted(args, { dispatch, queryFulfilled }) {\n try {\n const { data } = await queryFulfilled\n dispatch(\n eventApi.util.updateQueryData('eventGetEventById', args, (draftEvent) => {\n draftEvent.current_room_id = data.room_id\n }),\n )\n dispatch(\n eventApi.util.updateQueryData('eventGetCurrentEvent', undefined, (draftEvent) => {\n draftEvent.current_room_id = data.room_id\n }),\n )\n } catch {}\n },\n },\n agoraGetRtcRooms: {\n async onCacheEntryAdded(\n arg,\n { updateCachedData, cacheDataLoaded, cacheEntryRemoved, getState },\n ) {\n const { tokens } = (getState() as RootState).auth\n const { eventId } = arg\n let ws\n if (tokens && eventId) {\n try {\n await cacheDataLoaded\n const listener = (event: MessageEvent) => {\n const data = JSON.parse(event.data)\n // if (DEV) console.log(data)\n updateCachedData((draftRtcRooms) => {\n switch (data.event_type) {\n case 'AGORA_CREATE_NEW_ROOM':\n draftRtcRooms.push(data.event_message)\n break\n default:\n break\n }\n })\n }\n ws = await createSocket(eventId, listener)\n } catch {}\n await cacheEntryRemoved\n if (ws) {\n ws.close()\n }\n }\n },\n },\n },\n})\n\nexport { agoraApi }\n\nexport * from './auto-generated/agora'\n","import { baseApi as api } from '../api'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n ambassadorsGetAmbassadors: build.query<\n AmbassadorsGetAmbassadorsApiResponse,\n AmbassadorsGetAmbassadorsApiArg\n >({\n query: () => ({ url: `/api/v1/extensions/ambassadors/ambassadors` }),\n }),\n ambassadorsCreateAmbassador: build.mutation<\n AmbassadorsCreateAmbassadorApiResponse,\n AmbassadorsCreateAmbassadorApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/ambassadors/ambassador`,\n method: 'POST',\n body: queryArg.createAmbassadorsRequest,\n }),\n }),\n ambassadorsDeleteAmbassador: build.mutation<\n AmbassadorsDeleteAmbassadorApiResponse,\n AmbassadorsDeleteAmbassadorApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/ambassadors/ambassador/${queryArg.ambassadorId}`,\n method: 'DELETE',\n }),\n }),\n ambassadorsUpdateAmbassador: build.mutation<\n AmbassadorsUpdateAmbassadorApiResponse,\n AmbassadorsUpdateAmbassadorApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/ambassadors/ambassador/${queryArg.ambassadorId}`,\n method: 'PUT',\n body: queryArg.updateAmbassadorRequest,\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type AmbassadorsGetAmbassadorsApiResponse =\n /** status 200 Successful Response */ GetAmbassadorsResponse[]\nexport type AmbassadorsGetAmbassadorsApiArg = void\nexport type AmbassadorsCreateAmbassadorApiResponse =\n /** status 201 Successful Response */ GetAmbassadorsResponse\nexport type AmbassadorsCreateAmbassadorApiArg = {\n createAmbassadorsRequest: CreateAmbassadorsRequest\n}\nexport type AmbassadorsDeleteAmbassadorApiResponse = /** status 200 Successful Response */ any\nexport type AmbassadorsDeleteAmbassadorApiArg = {\n ambassadorId: number\n}\nexport type AmbassadorsUpdateAmbassadorApiResponse = /** status 200 Successful Response */ any\nexport type AmbassadorsUpdateAmbassadorApiArg = {\n ambassadorId: number\n updateAmbassadorRequest: UpdateAmbassadorRequest\n}\nexport type GetAmbassadorsResponse = {\n id: number\n name: string\n title: string\n image?: string | null\n interests?: string[] | null\n languages?: string[] | null\n external_link?: string | null\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type CreateAmbassadorsRequest = {\n name: string\n title: string\n image?: string | null\n external_link?: string | null\n languages?: string[] | null\n interests?: string[] | null\n}\nexport type UpdateAmbassadorRequest = {\n name?: string | null\n title?: string | null\n image?: string | null\n external_link?: string | null\n languages?: string[] | null\n interests?: string[] | null\n}\nexport const {\n useAmbassadorsGetAmbassadorsQuery,\n useLazyAmbassadorsGetAmbassadorsQuery,\n useAmbassadorsCreateAmbassadorMutation,\n useAmbassadorsDeleteAmbassadorMutation,\n useAmbassadorsUpdateAmbassadorMutation,\n} = injectedRtkApi\n","import { api as ambassadorsApi } from './auto-generated/ambassadors'\n\nambassadorsApi.enhanceEndpoints({\n endpoints: {},\n})\n\nexport { ambassadorsApi }\n","import { api as authApi } from './auto-generated/auth'\n\nauthApi.enhanceEndpoints({\n addTagTypes: ['MeUser'],\n endpoints: {\n authUpdateProfile: {\n async onQueryStarted(args, { dispatch, queryFulfilled }) {\n let patchResult\n patchResult = dispatch(\n authApi.util.updateQueryData('authWhoami', {}, (draftAuth) => {\n draftAuth.full_name = args.updateProfileRequest.full_name\n draftAuth.image = args.updateProfileRequest.image\n // dispatch(setUser(current(draftAuth)))\n }),\n )\n try {\n await queryFulfilled\n } catch {\n patchResult?.undo()\n }\n },\n },\n authWhoami: {\n providesTags: ['MeUser'],\n },\n },\n})\n\nexport { authApi }\n","import { baseApi as api } from '../api'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n bookingsListUserBookingRequest: build.query<\n BookingsListUserBookingRequestApiResponse,\n BookingsListUserBookingRequestApiArg\n >({\n query: () => ({ url: `/api/v1/extensions/bookings/booking` }),\n }),\n bookingsCreateBookingRequest: build.mutation<\n BookingsCreateBookingRequestApiResponse,\n BookingsCreateBookingRequestApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/bookings/booking`,\n method: 'POST',\n body: queryArg.createBookingRequest,\n }),\n }),\n bookingsRespondBookingRequest: build.mutation<\n BookingsRespondBookingRequestApiResponse,\n BookingsRespondBookingRequestApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/bookings/booking/${queryArg.bookingId}/respond`,\n method: 'POST',\n body: queryArg.respondBookingRequest,\n }),\n }),\n bookingsCancelBookingSession: build.mutation<\n BookingsCancelBookingSessionApiResponse,\n BookingsCancelBookingSessionApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/bookings/booking/sessions/${queryArg.sessionId}/cancel`,\n method: 'POST',\n }),\n }),\n bookingsListStudentBookingRequest: build.query<\n BookingsListStudentBookingRequestApiResponse,\n BookingsListStudentBookingRequestApiArg\n >({\n query: () => ({ url: `/api/v1/extensions/bookings/booking/student` }),\n }),\n bookingsListTeacherBookingSessions: build.query<\n BookingsListTeacherBookingSessionsApiResponse,\n BookingsListTeacherBookingSessionsApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/bookings/booking/sessions`,\n params: { upcoming: queryArg.upcoming },\n }),\n }),\n bookingsGetTeacherBookingSessions: build.query<\n BookingsGetTeacherBookingSessionsApiResponse,\n BookingsGetTeacherBookingSessionsApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/bookings/booking/sessions/${queryArg.sessionId}`,\n }),\n }),\n bookingsGetTeacherAvailabilities: build.query<\n BookingsGetTeacherAvailabilitiesApiResponse,\n BookingsGetTeacherAvailabilitiesApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/bookings/calendar`,\n params: {\n calendar_bookings: queryArg.calendarBookings,\n languages: queryArg.languages,\n lesson_types_ids: queryArg.lessonTypesIds,\n },\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type BookingsListUserBookingRequestApiResponse =\n /** status 200 Successful Response */ ListUserBookingRequestResponse[]\nexport type BookingsListUserBookingRequestApiArg = void\nexport type BookingsCreateBookingRequestApiResponse =\n /** status 201 Successful Response */ CreateBookingRequestResponse\nexport type BookingsCreateBookingRequestApiArg = {\n createBookingRequest: CreateBookingRequest\n}\nexport type BookingsRespondBookingRequestApiResponse =\n /** status 200 Successful Response */ BookingRequestRespondResponse\nexport type BookingsRespondBookingRequestApiArg = {\n bookingId: number\n respondBookingRequest: RespondBookingRequest\n}\nexport type BookingsCancelBookingSessionApiResponse =\n /** status 201 Successful Response */ CancelBookingSessionResponse\nexport type BookingsCancelBookingSessionApiArg = {\n sessionId: number\n}\nexport type BookingsListStudentBookingRequestApiResponse =\n /** status 200 Successful Response */ ListStudentBookingRequestResponse[]\nexport type BookingsListStudentBookingRequestApiArg = void\nexport type BookingsListTeacherBookingSessionsApiResponse =\n /** status 200 Successful Response */ ListTeacherBookingSessionResponse[]\nexport type BookingsListTeacherBookingSessionsApiArg = {\n upcoming?: boolean | null\n}\nexport type BookingsGetTeacherBookingSessionsApiResponse =\n /** status 200 Successful Response */ ListTeacherBookingSessionResponse\nexport type BookingsGetTeacherBookingSessionsApiArg = {\n sessionId: number\n}\nexport type BookingsGetTeacherAvailabilitiesApiResponse =\n /** status 200 Successful Response */ TeacherCalendarViewResponse\nexport type BookingsGetTeacherAvailabilitiesApiArg = {\n calendarBookings?: string[]\n languages?: string[]\n lessonTypesIds?: string[]\n}\nexport type BookingRequestStudentNested = {\n id: number\n full_name: string\n image?: string | null\n}\nexport type AvailabilityDate = {\n start_time: string\n end_time: string\n}\nexport type ListUserBookingRequestResponse = {\n id: number\n student: BookingRequestStudentNested\n status: string\n dates: AvailabilityDate[]\n}\nexport type CreateBookingRequestResponseNested = {\n id: number\n package_id: number\n dates: AvailabilityDate[]\n status: string\n}\nexport type CreateBookingRequestResponse = {\n booking_request: CreateBookingRequestResponseNested\n payment_link?: string | null\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type PaymentMethodEnum = 'stripe' | 'paymee'\nexport type CreateBookingRequest = {\n package_id: number\n availabilities: AvailabilityDate[]\n payment_method: PaymentMethodEnum\n}\nexport type BookingRequestRespondResponse = {\n id: number\n status: string\n}\nexport type BookingRequestEnum = 'accepted' | 'rejected'\nexport type RespondBookingRequest = {\n verdict: BookingRequestEnum\n reason?: string | null\n}\nexport type CancelBookingSessionResponse = {\n id: number\n status: string\n}\nexport type BookingRequestTeacherNested = {\n id: number\n full_name: string\n image?: string | null\n}\nexport type ListStudentBookingRequestResponse = {\n id: number\n teacher: BookingRequestTeacherNested\n status: string\n dates: AvailabilityDate[]\n}\nexport type BookingStudent = {\n id: number\n full_name: string\n image?: string | null\n}\nexport type BookingPackage = {\n id: number\n price_per_lesson: number\n duration: number\n total: number\n number_of_lessons: number\n language: string\n}\nexport type ListTeacherBookingSessionResponse = {\n id: number\n student: BookingStudent\n package: BookingPackage\n start_time: string\n end_time: string\n}\nexport type TeacherCalendarViewDatesResponseNested = {\n id: number\n start_time: string\n end_time: string\n}\nexport type TeacherCalendarViewResponse = {\n booked: TeacherCalendarViewDatesResponseNested[]\n requests: TeacherCalendarViewDatesResponseNested[]\n open_slots: TeacherCalendarViewDatesResponseNested[]\n}\nexport const {\n useBookingsListUserBookingRequestQuery,\n useLazyBookingsListUserBookingRequestQuery,\n useBookingsCreateBookingRequestMutation,\n useBookingsRespondBookingRequestMutation,\n useBookingsCancelBookingSessionMutation,\n useBookingsListStudentBookingRequestQuery,\n useLazyBookingsListStudentBookingRequestQuery,\n useBookingsListTeacherBookingSessionsQuery,\n useLazyBookingsListTeacherBookingSessionsQuery,\n useBookingsGetTeacherBookingSessionsQuery,\n useLazyBookingsGetTeacherBookingSessionsQuery,\n useBookingsGetTeacherAvailabilitiesQuery,\n useLazyBookingsGetTeacherAvailabilitiesQuery,\n} = injectedRtkApi\n","import { api as bookingsApi } from './auto-generated/bookings'\n\nbookingsApi.enhanceEndpoints({\n endpoints: {},\n})\n\nexport { bookingsApi }\n","import { baseApi as api } from '../api'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n captionThisGetCaptionThisGamesConfig: build.query<\n CaptionThisGetCaptionThisGamesConfigApiResponse,\n CaptionThisGetCaptionThisGamesConfigApiArg\n >({\n query: () => ({ url: `/api/v1/extensions/caption_this/config` }),\n }),\n captionThisJoinGame: build.mutation({\n query: (queryArg) => ({\n url: `/api/v1/extensions/caption_this/${queryArg.eventId}/start`,\n method: 'POST',\n }),\n }),\n captionThisExitGame: build.mutation({\n query: (queryArg) => ({\n url: `/api/v1/extensions/caption_this/${queryArg.eventId}/exit`,\n method: 'POST',\n }),\n }),\n captionThisGetGameResult: build.query<\n CaptionThisGetGameResultApiResponse,\n CaptionThisGetGameResultApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/caption_this/${queryArg.eventId}/get_game_result`,\n }),\n }),\n captionThisListGameVideos: build.query<\n CaptionThisListGameVideosApiResponse,\n CaptionThisListGameVideosApiArg\n >({\n query: (queryArg) => ({ url: `/api/v1/extensions/caption_this/${queryArg.eventId}/videos` }),\n }),\n captionThisGuessGameVideo: build.mutation<\n CaptionThisGuessGameVideoApiResponse,\n CaptionThisGuessGameVideoApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/caption_this/${queryArg.eventId}/guess`,\n method: 'POST',\n body: queryArg.guessCaptionThisRequest,\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type CaptionThisGetCaptionThisGamesConfigApiResponse =\n /** status 200 Successful Response */ CaptionThisConfig\nexport type CaptionThisGetCaptionThisGamesConfigApiArg = void\nexport type CaptionThisJoinGameApiResponse = /** status 200 Successful Response */ any\nexport type CaptionThisJoinGameApiArg = {\n eventId: string\n}\nexport type CaptionThisExitGameApiResponse = /** status 200 Successful Response */ any\nexport type CaptionThisExitGameApiArg = {\n eventId: string\n}\nexport type CaptionThisGetGameResultApiResponse =\n /** status 200 Successful Response */ CaptionThisGameScore\nexport type CaptionThisGetGameResultApiArg = {\n eventId: string\n}\nexport type CaptionThisListGameVideosApiResponse =\n /** status 200 Successful Response */ CaptionThisVideoResponseList\nexport type CaptionThisListGameVideosApiArg = {\n eventId: string\n}\nexport type CaptionThisGuessGameVideoApiResponse =\n /** status 200 Successful Response */ GuessCaptionThisResponse\nexport type CaptionThisGuessGameVideoApiArg = {\n eventId: string\n guessCaptionThisRequest: GuessCaptionThisRequest\n}\nexport type CaptionThisConfig = {\n min_number_users: number\n max_number_users: number\n retries: number\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type CaptionThisGameScore = {\n score: string\n}\nexport type CaptionThisGameStatus = 'PENDING' | 'STARTED' | 'SUCCESSFUL' | 'FAILED' | 'FINISHED'\nexport type CaptionThisVideoResponse = {\n id: number\n provider: string\n video_id: string\n start_ms: string\n end_ms: string\n prefix_phrase: string\n suffix_phrase: string\n last_guess?: string | null\n guess_length: number\n tries: number\n status: CaptionThisGameStatus\n}\nexport type CaptionThisVideoResponseList = {\n videos: CaptionThisVideoResponse[]\n}\nexport type GuessCaptionThisResponse = {\n game_id: number\n success?: boolean | null\n correct_guess?: string | null\n round_ended?: boolean\n}\nexport type GuessCaptionThisRequest = {\n game_id: number\n word: string\n}\nexport const {\n useCaptionThisGetCaptionThisGamesConfigQuery,\n useLazyCaptionThisGetCaptionThisGamesConfigQuery,\n useCaptionThisJoinGameMutation,\n useCaptionThisExitGameMutation,\n useCaptionThisGetGameResultQuery,\n useLazyCaptionThisGetGameResultQuery,\n useCaptionThisListGameVideosQuery,\n useLazyCaptionThisListGameVideosQuery,\n useCaptionThisGuessGameVideoMutation,\n} = injectedRtkApi\n","import { api as captionThisApi } from './auto-generated/captionThis'\n\ncaptionThisApi.enhanceEndpoints({\n endpoints: {},\n})\n\nexport { captionThisApi }\n","import { baseApi as api } from '../api'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n chatStartGame: build.mutation({\n query: (queryArg) => ({\n url: `/api/v1/extensions/chat/${queryArg.eventId}/start`,\n method: 'POST',\n params: { exit_: queryArg.exit },\n }),\n }),\n chatLeaveGame: build.mutation({\n query: (queryArg) => ({\n url: `/api/v1/extensions/chat/${queryArg.eventId}/exit`,\n method: 'POST',\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type ChatStartGameApiResponse = /** status 200 Successful Response */ any\nexport type ChatStartGameApiArg = {\n eventId: string\n exit?: boolean\n}\nexport type ChatLeaveGameApiResponse = /** status 200 Successful Response */ any\nexport type ChatLeaveGameApiArg = {\n eventId: string\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport const { useChatStartGameMutation, useChatLeaveGameMutation } = injectedRtkApi\n","import { api as chatApi } from './auto-generated/chat'\n\nchatApi.enhanceEndpoints({\n endpoints: {},\n})\n\nexport { chatApi }\n","import { baseApi as api } from '../api'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n classroomCreateClassroom: build.mutation<\n ClassroomCreateClassroomApiResponse,\n ClassroomCreateClassroomApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/sdk/classroom/classroom`,\n method: 'POST',\n body: queryArg.createClassroomRequest,\n }),\n }),\n classroomListClassrooms: build.query<\n ClassroomListClassroomsApiResponse,\n ClassroomListClassroomsApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/sdk/classroom/classrooms`,\n params: { user_id: queryArg.userId },\n }),\n }),\n classroomGetClassroom: build.query<\n ClassroomGetClassroomApiResponse,\n ClassroomGetClassroomApiArg\n >({\n query: (queryArg) => ({ url: `/api/v1/sdk/classroom/classrooms/${queryArg.id}` }),\n }),\n classroomJoinClassroom: build.mutation<\n ClassroomJoinClassroomApiResponse,\n ClassroomJoinClassroomApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/sdk/classroom/classrooms/${queryArg.code}/join`,\n method: 'POST',\n }),\n }),\n classroomUnjoinClassroom: build.mutation<\n ClassroomUnjoinClassroomApiResponse,\n ClassroomUnjoinClassroomApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/sdk/classroom/classrooms/${queryArg.code}/unjoin`,\n method: 'POST',\n }),\n }),\n classroomCreateClassroomTask: build.mutation<\n ClassroomCreateClassroomTaskApiResponse,\n ClassroomCreateClassroomTaskApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/sdk/classroom/task`,\n method: 'POST',\n body: queryArg.createClassroomTaskRequest,\n }),\n }),\n classroomListClassroomTasks: build.query<\n ClassroomListClassroomTasksApiResponse,\n ClassroomListClassroomTasksApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/sdk/classroom/tasks/`,\n params: {\n classroom_id: queryArg.classroomId,\n is_active: queryArg.isActive,\n is_upcoming: queryArg.isUpcoming,\n for_you: queryArg.forYou,\n },\n }),\n }),\n classroomGetClassroomTask: build.query<\n ClassroomGetClassroomTaskApiResponse,\n ClassroomGetClassroomTaskApiArg\n >({\n query: (queryArg) => ({ url: `/api/v1/sdk/classroom/tasks/${queryArg.id}` }),\n }),\n classroomReplyClassroomTask: build.mutation<\n ClassroomReplyClassroomTaskApiResponse,\n ClassroomReplyClassroomTaskApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/sdk/classroom/tasks/${queryArg.id}/reply`,\n method: 'POST',\n body: queryArg.replyClassroomTaskRequest,\n }),\n }),\n classroomGetJoinedStudentsTaskReplies: build.query<\n ClassroomGetJoinedStudentsTaskRepliesApiResponse,\n ClassroomGetJoinedStudentsTaskRepliesApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/sdk/classroom/classroom/${queryArg.id}/joined_student_task_replies`,\n }),\n }),\n classroomClassroomInviteStudent: build.mutation<\n ClassroomClassroomInviteStudentApiResponse,\n ClassroomClassroomInviteStudentApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/sdk/classroom/classroom/${queryArg.id}/invite_student`,\n method: 'POST',\n body: queryArg.classroomInviteStudentRequest,\n }),\n }),\n classroomGetCurrentClassroom: build.query<\n ClassroomGetCurrentClassroomApiResponse,\n ClassroomGetCurrentClassroomApiArg\n >({\n query: () => ({ url: `/api/v1/sdk/classroom/classroom/current_classroom` }),\n }),\n classroomDeleteClassroomTask: build.mutation<\n ClassroomDeleteClassroomTaskApiResponse,\n ClassroomDeleteClassroomTaskApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/sdk/classroom/task/${queryArg.taskId}`,\n method: 'DELETE',\n }),\n }),\n classroomUpdateClassroomTask: build.mutation<\n ClassroomUpdateClassroomTaskApiResponse,\n ClassroomUpdateClassroomTaskApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/sdk/classroom/task/${queryArg.taskId}`,\n method: 'PUT',\n body: queryArg.classroomTaskUpdateRequest,\n }),\n }),\n classroomListClassroomStudents: build.query<\n ClassroomListClassroomStudentsApiResponse,\n ClassroomListClassroomStudentsApiArg\n >({\n query: () => ({ url: `/api/v1/sdk/classroom/classroom/students` }),\n }),\n classroomRemoveStudentFromClassroom: build.mutation<\n ClassroomRemoveStudentFromClassroomApiResponse,\n ClassroomRemoveStudentFromClassroomApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/sdk/classroom/classroom/remove_student`,\n method: 'POST',\n body: queryArg.classroomRemoveStudentRequest,\n }),\n }),\n classroomUpdateClassroomMaxSubscribers: build.mutation<\n ClassroomUpdateClassroomMaxSubscribersApiResponse,\n ClassroomUpdateClassroomMaxSubscribersApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/sdk/classroom/classroom/update`,\n method: 'POST',\n body: queryArg.classroomUpdateMaxSubscribersRequest,\n }),\n }),\n classroomGetIspeakTasks: build.query<\n ClassroomGetIspeakTasksApiResponse,\n ClassroomGetIspeakTasksApiArg\n >({\n query: () => ({ url: `/api/v1/sdk/classroom/classroom/ispeak_tasks` }),\n }),\n classroomAddIspeakTaskToClassroomTasks: build.mutation<\n ClassroomAddIspeakTaskToClassroomTasksApiResponse,\n ClassroomAddIspeakTaskToClassroomTasksApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/sdk/classroom/classroom/add_ispeak_task_to_classroom_tasks`,\n method: 'POST',\n body: queryArg.addIspeakTaskToClassroomTasksRequest,\n }),\n }),\n classroomAddTasksFolder: build.mutation<\n ClassroomAddTasksFolderApiResponse,\n ClassroomAddTasksFolderApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/sdk/classroom/classroom/create_task_folder`,\n method: 'POST',\n body: queryArg.addTasksFolderRequest,\n }),\n }),\n classroomGetTeacherTaskFolders: build.query<\n ClassroomGetTeacherTaskFoldersApiResponse,\n ClassroomGetTeacherTaskFoldersApiArg\n >({\n query: () => ({ url: `/api/v1/sdk/classroom/classroom/get_teacher_task_folders` }),\n }),\n classroomGetLivePracticeTask: build.query<\n ClassroomGetLivePracticeTaskApiResponse,\n ClassroomGetLivePracticeTaskApiArg\n >({\n query: () => ({ url: `/api/v1/sdk/classroom/classroom/get_live_practice_task` }),\n }),\n classroomOrderClassroomTasks: build.mutation<\n ClassroomOrderClassroomTasksApiResponse,\n ClassroomOrderClassroomTasksApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/sdk/classroom/tasks/order`,\n method: 'POST',\n body: queryArg.classroomTasksOrderRequest,\n }),\n }),\n classroomDeleteClassroomTasksFolder: build.mutation<\n ClassroomDeleteClassroomTasksFolderApiResponse,\n ClassroomDeleteClassroomTasksFolderApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/sdk/classroom/classroom/${queryArg.folderId}`,\n method: 'DELETE',\n }),\n }),\n classroomUpdateClassroomTasksFolder: build.mutation<\n ClassroomUpdateClassroomTasksFolderApiResponse,\n ClassroomUpdateClassroomTasksFolderApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/sdk/classroom/classroom/update_folder`,\n method: 'POST',\n body: queryArg.classroomUpdateTasksFolderRequest,\n }),\n }),\n classroomGetIeltsTasks: build.query<\n ClassroomGetIeltsTasksApiResponse,\n ClassroomGetIeltsTasksApiArg\n >({\n query: () => ({ url: `/api/v1/sdk/classroom/classroom/ielts_tasks` }),\n }),\n classroomGetToeflTasks: build.query<\n ClassroomGetToeflTasksApiResponse,\n ClassroomGetToeflTasksApiArg\n >({\n query: () => ({ url: `/api/v1/sdk/classroom/classroom/toelf_tasks` }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type ClassroomCreateClassroomApiResponse =\n /** status 201 Successful Response */ CreateClassroomResponse\nexport type ClassroomCreateClassroomApiArg = {\n createClassroomRequest: CreateClassroomRequest\n}\nexport type ClassroomListClassroomsApiResponse =\n /** status 200 Successful Response */ ClassroomResponse[]\nexport type ClassroomListClassroomsApiArg = {\n userId?: number | null\n}\nexport type ClassroomGetClassroomApiResponse =\n /** status 200 Successful Response */ ClassroomResponse\nexport type ClassroomGetClassroomApiArg = {\n id: number\n}\nexport type ClassroomJoinClassroomApiResponse =\n /** status 201 Successful Response */ JoinClassroomResponse\nexport type ClassroomJoinClassroomApiArg = {\n code: string\n}\nexport type ClassroomUnjoinClassroomApiResponse = /** status 200 Successful Response */ any\nexport type ClassroomUnjoinClassroomApiArg = {\n code: string\n}\nexport type ClassroomCreateClassroomTaskApiResponse =\n /** status 201 Successful Response */ ClassroomTaskResponse\nexport type ClassroomCreateClassroomTaskApiArg = {\n createClassroomTaskRequest: CreateClassroomTaskRequest\n}\nexport type ClassroomListClassroomTasksApiResponse =\n /** status 200 Successful Response */ ClassroomTaskResponse[]\nexport type ClassroomListClassroomTasksApiArg = {\n classroomId?: number | null\n isActive?: boolean | null\n isUpcoming?: boolean | null\n forYou?: boolean | null\n}\nexport type ClassroomGetClassroomTaskApiResponse =\n /** status 200 Successful Response */ ClassroomTaskResponse\nexport type ClassroomGetClassroomTaskApiArg = {\n id: number\n}\nexport type ClassroomReplyClassroomTaskApiResponse =\n /** status 200 Successful Response */ ClassroomTaskReplyResponse\nexport type ClassroomReplyClassroomTaskApiArg = {\n id: number\n replyClassroomTaskRequest: ReplyClassroomTaskRequest\n}\nexport type ClassroomGetJoinedStudentsTaskRepliesApiResponse =\n /** status 200 Successful Response */ object[]\nexport type ClassroomGetJoinedStudentsTaskRepliesApiArg = {\n id: number\n}\nexport type ClassroomClassroomInviteStudentApiResponse = /** status 200 Successful Response */ any\nexport type ClassroomClassroomInviteStudentApiArg = {\n id: number\n classroomInviteStudentRequest: ClassroomInviteStudentRequest\n}\nexport type ClassroomGetCurrentClassroomApiResponse =\n /** status 200 Successful Response */ ClassroomResponse | null\nexport type ClassroomGetCurrentClassroomApiArg = void\nexport type ClassroomDeleteClassroomTaskApiResponse =\n /** status 200 Successful Response */ ClassroomDeleteTaskResponse\nexport type ClassroomDeleteClassroomTaskApiArg = {\n taskId: number\n}\nexport type ClassroomUpdateClassroomTaskApiResponse = /** status 201 Successful Response */ any\nexport type ClassroomUpdateClassroomTaskApiArg = {\n taskId: number\n classroomTaskUpdateRequest: ClassroomTaskUpdateRequest\n}\nexport type ClassroomListClassroomStudentsApiResponse = /** status 200 Successful Response */ any\nexport type ClassroomListClassroomStudentsApiArg = void\nexport type ClassroomRemoveStudentFromClassroomApiResponse =\n /** status 201 Successful Response */ any\nexport type ClassroomRemoveStudentFromClassroomApiArg = {\n classroomRemoveStudentRequest: ClassroomRemoveStudentRequest\n}\nexport type ClassroomUpdateClassroomMaxSubscribersApiResponse =\n /** status 201 Successful Response */ any\nexport type ClassroomUpdateClassroomMaxSubscribersApiArg = {\n classroomUpdateMaxSubscribersRequest: ClassroomUpdateMaxSubscribersRequest\n}\nexport type ClassroomGetIspeakTasksApiResponse = /** status 200 Successful Response */ any\nexport type ClassroomGetIspeakTasksApiArg = void\nexport type ClassroomAddIspeakTaskToClassroomTasksApiResponse =\n /** status 201 Successful Response */ any\nexport type ClassroomAddIspeakTaskToClassroomTasksApiArg = {\n addIspeakTaskToClassroomTasksRequest: AddIspeakTaskToClassroomTasksRequest\n}\nexport type ClassroomAddTasksFolderApiResponse = /** status 201 Successful Response */ any\nexport type ClassroomAddTasksFolderApiArg = {\n addTasksFolderRequest: AddTasksFolderRequest\n}\nexport type ClassroomGetTeacherTaskFoldersApiResponse = /** status 200 Successful Response */ any\nexport type ClassroomGetTeacherTaskFoldersApiArg = void\nexport type ClassroomGetLivePracticeTaskApiResponse = /** status 200 Successful Response */ any\nexport type ClassroomGetLivePracticeTaskApiArg = void\nexport type ClassroomOrderClassroomTasksApiResponse = /** status 200 Successful Response */ any\nexport type ClassroomOrderClassroomTasksApiArg = {\n classroomTasksOrderRequest: ClassroomTasksOrderRequest\n}\nexport type ClassroomDeleteClassroomTasksFolderApiResponse =\n /** status 200 Successful Response */ ClassroomDeleteTasksFolderResponse\nexport type ClassroomDeleteClassroomTasksFolderApiArg = {\n folderId: number\n}\nexport type ClassroomUpdateClassroomTasksFolderApiResponse =\n /** status 201 Successful Response */ any\nexport type ClassroomUpdateClassroomTasksFolderApiArg = {\n classroomUpdateTasksFolderRequest: ClassroomUpdateTasksFolderRequest\n}\nexport type ClassroomGetIeltsTasksApiResponse = /** status 200 Successful Response */ any\nexport type ClassroomGetIeltsTasksApiArg = void\nexport type ClassroomGetToeflTasksApiResponse = /** status 200 Successful Response */ any\nexport type ClassroomGetToeflTasksApiArg = void\nexport type CreateClassroomResponse = {\n id: number\n name: string\n description: string\n image?: string | null\n code: string\n created_at: string\n year?: number | null\n cohort?: string | null\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type CreateClassroomRequest = {\n name: string\n description: string\n year?: number | null\n cohort?: string | null\n}\nexport type ClassRoomUser = {\n username: string\n full_name?: string | null\n image?: string | null\n avatar?: string | null\n}\nexport type ClassroomResponse = {\n id: number\n name: string\n description: string\n image?: string | null\n code: string\n created_at: string\n user?: ClassRoomUser | null\n max_subscribers: number\n year?: number | null\n cohort?: string | null\n}\nexport type JoinClassroomResponse = {\n id: number\n user_id: number\n classroom_id: number\n}\nexport type TaskQuestionResponse = {\n id: number\n text: string\n created_at: string\n}\nexport type GameType =\n | 'NONE'\n | 'GEO_GAME'\n | 'CAPTION_THIS'\n | 'HYPERBEAM'\n | 'PICTIONARY'\n | 'JUST_CHAT'\n | 'JKLM_FUN'\n | 'DISCUSSION'\n | 'WHITEBOARD'\n | 'CHAT'\n | 'GROUP_LESSON'\nexport type Pronouns = 0 | 1 | 2 | 3\nexport type TeacherProfileResponse = {\n bio?: string | null\n experience?: string | null\n tags?: string[] | null\n video_link?: string | null\n teaching_style?: string | null\n price_per_hour?: number | null\n partner?: boolean | null\n is_reviewer?: boolean | null\n}\nexport type LanguageExperience = 0 | 1 | 2 | 3 | 4\nexport type LanguageProficiency = {\n language: string\n proficiency: LanguageExperience\n}\nexport type UserStatus = 'STUDENT' | 'TEACHER'\nexport type Permission =\n | 'CREATE_EVENT'\n | 'CREATE_PENGGUIN_EVENT'\n | 'SEND_DIRECT_MESSAGE'\n | 'CREATE_CUSTOM_ROLE'\n | 'SEND_EMAIL_TO_USERS'\n | 'CREATE_GEOGUESSER_GAME'\n | 'JOIN_GEOGUESSER_GAME'\n | 'MAKE_GUESS_GEOGUESSER_GAME'\n | 'MAKE_RATING'\n | 'UPLOAD_FILE'\n | 'DELETE_ACCOUNT'\n | 'MAKE_ROLE'\n | 'ASSIGN_ROLE'\n | 'VIEW_ROLES'\n | 'EDIT_ROLE'\n | 'GENERATE_AGORA_TOKEN'\n | 'REFRESH_AGORA_TOKEN'\n | 'CREATE_AMBASSADOR'\n | 'DELETE_AMBASSADOR'\n | 'UPDATE_AMBASSADOR'\n | 'TRANSLATE'\n | 'CREATE_DISCORD_ROLE'\n | 'VIEW_DISCORD_ROLE'\n | 'CREATE_GEOGUESSER_PLACES'\n | 'HYPERBEAM_LIST_SESSIONS'\n | 'HYPERBEAM_DELETE_SESSIONS'\n | 'ADMIN_VIEW_USERS'\n | 'ADMIN_LANGUAGES'\n | 'ADMIN_AGORA_TOKENS_AUDIT'\n | 'ADMIN_ROLE'\n | 'ADMIN_DIRECT_MESSAGE'\n | 'ADMIN_AMBASSADORS'\n | 'ADMIN_DISCORD_ROLES'\n | 'ADMIN_DISCORD_AUDIT_EVENT'\n | 'ADMIN_DISCUSSION_LANGUAGE'\n | 'ADMIN_DISCUSSION_LANGUAGE_AUDIT_EVENTS'\n | 'ADMIN_USER_FLAGGING'\n | 'ADMIN_GEOGAME_ROUNDS'\n | 'ADMIN_GEOGAME_STATIC_COORDINATES'\n | 'ADMIN_GEOGAME_AUDIT_EVENTS'\n | 'ADMIN_EVENT_GAME_CHAT'\n | 'ADMIN_EVENT_CHAT'\n | 'ADMIN_EVENT_PARTICIPANTS'\n | 'ADMIN_PICTIONARY_AUDIT'\n | 'ADMIN_PICTIONARY_GAMES'\n | 'ADMIN_PICTIONARY_ROUNDS'\n | 'ADMIN_PICTIONARY_GUESS'\n | 'ADMIN_PICTIONARY_WORDS'\n | 'ADMIN_TRANSLATION_AUDIT'\n | 'ADMIN_REDIS_CONSOLE'\n | 'ADMIN_DEBUGGING_CONSOLE'\n | 'CREATE_TRANSCRIPT'\n | 'ADMIN_RECORDINGS'\n | 'HUDDLE_HOST'\nexport type RolesInDb = {\n id?: number | null\n name?: string | null\n permissions?: Permission[] | null\n}\nexport type PublicUserProfile = {\n id?: number | null\n username?: string | null\n image?: string | null\n full_name?: string | null\n country?: string | null\n pronouns?: Pronouns | null\n profile?: TeacherProfileResponse | null\n accent?: string | null\n voice_gender?: string | null\n learning?: LanguageProficiency[] | null\n speaking?: LanguageProficiency[] | null\n status?: UserStatus\n display_name?: string | null\n is_company?: boolean | null\n cefr_level?: string | null\n roles?: RolesInDb[] | null\n plan?: string | null\n}\nexport type GameStatus = 'PENDING' | 'STARTED' | 'FINISHED' | 'CANCELED'\nexport type EventResponse = {\n id: number\n event_id: string\n event_type?: GameType | null\n current_room_id?: string | null\n event_language: string\n event_title?: string | null\n event_description?: string | null\n start_time_utc: string\n end_time_utc?: string | null\n host: PublicUserProfile\n proficiency: LanguageExperience\n participants: PublicUserProfile[]\n users?: PublicUserProfile[] | null\n is_live?: boolean\n short_event_id?: string | null\n status?: GameStatus | null\n is_private?: boolean | null\n tags?: string[] | null\n game_status?: GameStatus | null\n color_attribute?: string | null\n users_partition?: object\n duration?: number | null\n}\nexport type ClassroomTaskResponse = {\n id: number\n title: string\n description?: string | null\n classroom: ClassroomResponse\n start_time: string\n end_time: string\n video_link?: string | null\n thumbnail_link?: string | null\n questions: TaskQuestionResponse[]\n created_at: string\n color?: string | null\n external_link?: string | null\n event?: EventResponse | null\n}\nexport type CreateClassroomTaskRequest = {\n classroom_id: number\n title: string\n description?: string | null\n video_link?: string | null\n thumbnail_link?: string | null\n start_time: string\n end_time: string\n questions: string[]\n show_tasks_when_record?: boolean\n show_profile_picture?: boolean\n tags: string[]\n color?: string | null\n folders?: number[] | null\n external_link?: string | null\n}\nexport type ClassroomTaskReplyResponse = {\n id: number\n text_reply?: string | null\n audio_reply_url?: string | null\n task_id: number\n user_id: number\n created_at: string\n}\nexport type ReplyClassroomTaskRequest = {\n text_reply?: string | null\n audio_reply?: Blob | null\n}\nexport type ClassroomInviteStudentRequest = {\n email: string\n}\nexport type ClassroomDeleteTaskResponse = {\n task_id: number\n classroom_id: number\n}\nexport type ClassroomTaskUpdateRequest = {\n questions?: string[] | null\n color?: string | null\n video_link?: string | null\n external_link?: string | null\n}\nexport type ClassroomRemoveStudentRequest = {\n user_id: number\n classroom_id: number\n}\nexport type ClassroomUpdateMaxSubscribersRequest = {\n max_subscribers: number\n}\nexport type AddIspeakTaskToClassroomTasksRequest = {\n task_id: number\n}\nexport type AddTasksFolderRequest = {\n name: string\n visibility: number[]\n}\nexport type TaskOrderingReq = {\n task_id: number\n order: number\n}\nexport type ClassroomTasksOrderRequest = {\n task_ordering: TaskOrderingReq[]\n}\nexport type ClassroomDeleteTasksFolderResponse = {\n id: number\n}\nexport type ClassroomUpdateTasksFolderRequest = {\n id: number\n name?: string | null\n visibility?: number[] | null\n}\nexport const {\n useClassroomCreateClassroomMutation,\n useClassroomListClassroomsQuery,\n useLazyClassroomListClassroomsQuery,\n useClassroomGetClassroomQuery,\n useLazyClassroomGetClassroomQuery,\n useClassroomJoinClassroomMutation,\n useClassroomUnjoinClassroomMutation,\n useClassroomCreateClassroomTaskMutation,\n useClassroomListClassroomTasksQuery,\n useLazyClassroomListClassroomTasksQuery,\n useClassroomGetClassroomTaskQuery,\n useLazyClassroomGetClassroomTaskQuery,\n useClassroomReplyClassroomTaskMutation,\n useClassroomGetJoinedStudentsTaskRepliesQuery,\n useLazyClassroomGetJoinedStudentsTaskRepliesQuery,\n useClassroomClassroomInviteStudentMutation,\n useClassroomGetCurrentClassroomQuery,\n useLazyClassroomGetCurrentClassroomQuery,\n useClassroomDeleteClassroomTaskMutation,\n useClassroomUpdateClassroomTaskMutation,\n useClassroomListClassroomStudentsQuery,\n useLazyClassroomListClassroomStudentsQuery,\n useClassroomRemoveStudentFromClassroomMutation,\n useClassroomUpdateClassroomMaxSubscribersMutation,\n useClassroomGetIspeakTasksQuery,\n useLazyClassroomGetIspeakTasksQuery,\n useClassroomAddIspeakTaskToClassroomTasksMutation,\n useClassroomAddTasksFolderMutation,\n useClassroomGetTeacherTaskFoldersQuery,\n useLazyClassroomGetTeacherTaskFoldersQuery,\n useClassroomGetLivePracticeTaskQuery,\n useLazyClassroomGetLivePracticeTaskQuery,\n useClassroomOrderClassroomTasksMutation,\n useClassroomDeleteClassroomTasksFolderMutation,\n useClassroomUpdateClassroomTasksFolderMutation,\n useClassroomGetIeltsTasksQuery,\n useLazyClassroomGetIeltsTasksQuery,\n useClassroomGetToeflTasksQuery,\n useLazyClassroomGetToeflTasksQuery,\n} = injectedRtkApi\n","import { api as classroomApi } from './auto-generated/classroom'\n\nclassroomApi.enhanceEndpoints({\n endpoints: {\n classroomCreateClassroom: {\n async onQueryStarted(args, { dispatch, queryFulfilled }) {\n let patchResult\n try {\n const { data } = await queryFulfilled\n patchResult = dispatch(\n classroomApi.util.updateQueryData(\n 'classroomGetCurrentClassroom',\n undefined,\n (draft) => {\n draft = data\n return draft\n },\n ),\n )\n } catch {\n patchResult?.undo()\n }\n },\n },\n classroomJoinClassroom: {\n async onQueryStarted(args, { dispatch, queryFulfilled }) {\n try {\n await queryFulfilled\n dispatch(classroomApi.endpoints.classroomGetCurrentClassroom.initiate())\n } catch {}\n },\n },\n classroomUnjoinClassroom: {\n async onQueryStarted(args, { dispatch, queryFulfilled }) {\n try {\n await queryFulfilled\n dispatch(classroomApi.endpoints.classroomGetCurrentClassroom.initiate())\n } catch {}\n },\n },\n classroomCreateClassroomTask: {\n async onQueryStarted(args, { dispatch, queryFulfilled }) {\n try {\n const { data: newTask } = await queryFulfilled\n if (newTask.folders.length === 0) {\n dispatch(\n classroomApi.util.updateQueryData(\n 'classroomListClassroomTasks',\n { classroomId: newTask.classroom.id },\n (draftTasks) => {\n console.log('draftTasks', JSON.stringify(draftTasks))\n draftTasks.push(newTask)\n },\n ),\n )\n }\n if (newTask.folders.length !== 0) {\n dispatch(\n classroomApi.util.updateQueryData(\n 'classroomGetTeacherTaskFolders',\n undefined,\n (draftFolders) => {\n draftFolders.map((folder) => {\n if (folder.id === newTask.folders[0].id) {\n folder.tasks.push(newTask)\n }\n })\n },\n ),\n )\n }\n } catch {}\n },\n },\n classroomDeleteClassroomTask: {\n async onQueryStarted(args, { dispatch, queryFulfilled }) {\n let patchResult\n try {\n const { data: deleted_task } = await queryFulfilled\n patchResult = dispatch(\n classroomApi.util.updateQueryData(\n 'classroomListClassroomTasks',\n { classroomId: deleted_task.classroom_id },\n (draftTasks) => {\n return draftTasks?.filter((item) => item?.id !== args?.taskId)\n },\n ),\n )\n } catch {\n patchResult?.undo()\n }\n },\n },\n classroomUpdateClassroomTask: {\n async onQueryStarted(args, { dispatch, queryFulfilled }) {\n let patchResult\n try {\n const { data: updatedTask } = await queryFulfilled\n patchResult = dispatch(\n classroomApi.util.updateQueryData(\n 'classroomListClassroomTasks',\n { classroomId: updatedTask.classroom_id },\n (draftTasks) => {\n return draftTasks.map((item) => {\n if (item?.id === args?.taskId) {\n return updatedTask\n } else {\n return item\n }\n })\n },\n ),\n )\n } catch {\n patchResult?.undo()\n }\n },\n },\n classroomAddIspeakTaskToClassroomTasks: {\n async onQueryStarted(args, { dispatch, queryFulfilled }) {\n try {\n const { data: newTask } = await queryFulfilled\n dispatch(\n classroomApi.util.updateQueryData(\n 'classroomListClassroomTasks',\n { classroomId: newTask.classroom.id },\n (draftTasks) => {\n draftTasks.push(newTask)\n },\n ),\n )\n } catch {}\n },\n },\n classroomAddTasksFolder: {\n async onQueryStarted(args, { dispatch, queryFulfilled }) {\n try {\n const { data: newFolder } = await queryFulfilled\n dispatch(\n classroomApi.util.updateQueryData(\n 'classroomGetTeacherTaskFolders',\n undefined,\n (draftFolders) => {\n draftFolders.push(newFolder)\n },\n ),\n )\n } catch {}\n },\n },\n classroomDeleteClassroomTasksFolder: {\n async onQueryStarted(args, { dispatch, queryFulfilled }) {\n let patchResult\n try {\n const { data: deleted_folder } = await queryFulfilled\n patchResult = dispatch(\n classroomApi.util.updateQueryData(\n 'classroomGetTeacherTaskFolders',\n undefined,\n (draftFolders) => {\n return draftFolders?.filter((item) => item?.id !== args?.folderId)\n },\n ),\n )\n } catch {\n patchResult?.undo()\n }\n },\n },\n // classroomUpdateClassroomTasksFolder: {\n // async onQueryStarted(args, { dispatch, queryFulfilled }) {\n // let patchResult\n // try {\n // const { data: updatedFolder } = await queryFulfilled\n // patchResult = dispatch(\n // classroomApi.util.updateQueryData(\n // 'classroomGetTeacherTaskFolders',\n // undefined,\n // (draftFolders) => {\n // return draftFolders.map((item) => {\n // if (item?.id === updatedFolder.id) {\n // return updatedFolder\n // } else {\n // return item\n // }\n // })\n // },\n // ),\n // )\n // } catch {\n // patchResult?.undo()\n // }\n // },\n // },\n },\n})\n\nexport { classroomApi }\n","import { baseApi as api } from '../api'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n discordCreateDiscordRole: build.mutation<\n DiscordCreateDiscordRoleApiResponse,\n DiscordCreateDiscordRoleApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/discord/role`,\n method: 'POST',\n body: queryArg.createDiscordRoleRequest,\n }),\n }),\n discordGetDiscordRoles: build.query<\n DiscordGetDiscordRolesApiResponse,\n DiscordGetDiscordRolesApiArg\n >({\n query: () => ({ url: `/api/v1/extensions/discord/roles` }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type DiscordCreateDiscordRoleApiResponse =\n /** status 201 Successful Response */ DiscordRoleResponse\nexport type DiscordCreateDiscordRoleApiArg = {\n createDiscordRoleRequest: CreateDiscordRoleRequest\n}\nexport type DiscordGetDiscordRolesApiResponse =\n /** status 200 Successful Response */ DiscordRoleResponse[]\nexport type DiscordGetDiscordRolesApiArg = void\nexport type DiscordRoleResponse = {\n id: number\n name: string\n identifier: string\n language: string\n created_at: string\n updated_at: string\n learning: boolean\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type CreateDiscordRoleRequest = {\n name: string\n identifier: string\n language: string\n learning: boolean\n}\nexport const {\n useDiscordCreateDiscordRoleMutation,\n useDiscordGetDiscordRolesQuery,\n useLazyDiscordGetDiscordRolesQuery,\n} = injectedRtkApi\n","import { api as discordApi } from './auto-generated/discord'\n\ndiscordApi.enhanceEndpoints({\n endpoints: {},\n})\n\nexport { discordApi }\n","import { baseApi as api } from '../api'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n discussionGetConfig: build.query({\n query: () => ({ url: `/api/v1/extensions/discussion/config` }),\n }),\n discussionGenerateNewDiscussionTopic: build.mutation<\n DiscussionGenerateNewDiscussionTopicApiResponse,\n DiscussionGenerateNewDiscussionTopicApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/discussion/${queryArg.eventId}/${queryArg.roomId}/get_topic`,\n method: 'POST',\n body: queryArg.discussionTopicFilterRequest,\n }),\n }),\n discussionGetCurrentDiscussionTopic: build.query<\n DiscussionGetCurrentDiscussionTopicApiResponse,\n DiscussionGetCurrentDiscussionTopicApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/discussion/${queryArg.eventId}/${queryArg.roomId}`,\n }),\n }),\n discussionStartDiscussion: build.mutation<\n DiscussionStartDiscussionApiResponse,\n DiscussionStartDiscussionApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/discussion/${queryArg.eventId}/start`,\n method: 'POST',\n params: { exit_: queryArg.exit },\n }),\n }),\n discussionExitDiscussion: build.mutation<\n DiscussionExitDiscussionApiResponse,\n DiscussionExitDiscussionApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/discussion/${queryArg.eventId}/exit`,\n method: 'POST',\n }),\n }),\n discussionGetNewTopic: build.mutation<\n DiscussionGetNewTopicApiResponse,\n DiscussionGetNewTopicApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/discussion/${queryArg.eventId}/${queryArg.roomId}/topic`,\n method: 'POST',\n body: queryArg.discussionTopicFilterRequest,\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type DiscussionGetConfigApiResponse = /** status 200 Successful Response */ DiscussionConfig\nexport type DiscussionGetConfigApiArg = void\nexport type DiscussionGenerateNewDiscussionTopicApiResponse =\n /** status 200 Successful Response */ DiscussionTopicResponse\nexport type DiscussionGenerateNewDiscussionTopicApiArg = {\n eventId: string\n roomId: number\n discussionTopicFilterRequest: DiscussionTopicFilterRequest\n}\nexport type DiscussionGetCurrentDiscussionTopicApiResponse =\n /** status 200 Successful Response */ DiscussionTopicResponse | null\nexport type DiscussionGetCurrentDiscussionTopicApiArg = {\n eventId: string\n roomId: number\n}\nexport type DiscussionStartDiscussionApiResponse = /** status 200 Successful Response */ any\nexport type DiscussionStartDiscussionApiArg = {\n eventId: string\n exit?: boolean\n}\nexport type DiscussionExitDiscussionApiResponse = /** status 200 Successful Response */ any\nexport type DiscussionExitDiscussionApiArg = {\n eventId: string\n}\nexport type DiscussionGetNewTopicApiResponse =\n /** status 200 Successful Response */ DiscussionTopicResponse\nexport type DiscussionGetNewTopicApiArg = {\n eventId: string\n roomId: number\n discussionTopicFilterRequest: DiscussionTopicFilterRequest\n}\nexport type DiscussionConfig = {\n supported_languages: string[]\n metrics: string[]\n}\nexport type LangaugeResponse = {\n id: number\n english_name: string\n native_name: string\n code: string\n}\nexport type DiscussionTopicResponse = {\n laid_back_to_deep?: number | null\n personal_to_impersonal?: number | null\n suitable_more_for_two_individuals?: number | null\n phrase: string\n language: LangaugeResponse\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type DiscussionTopicFilterRequest = {\n laid_back_to_deep?: number | null\n personal_to_impersonal?: number | null\n suitable_more_for_two_individuals?: number | null\n}\nexport const {\n useDiscussionGetConfigQuery,\n useLazyDiscussionGetConfigQuery,\n useDiscussionGenerateNewDiscussionTopicMutation,\n useDiscussionGetCurrentDiscussionTopicQuery,\n useLazyDiscussionGetCurrentDiscussionTopicQuery,\n useDiscussionStartDiscussionMutation,\n useDiscussionExitDiscussionMutation,\n useDiscussionGetNewTopicMutation,\n} = injectedRtkApi\n","import { api as discussionApi } from './auto-generated/discussion'\nimport { api as eventApi } from './auto-generated/event'\nimport { RootState } from '@app/store'\nimport { API_BASE_URL } from '@config'\nimport { createSocket } from './ws'\nimport { refreshTokenIfExpired } from '@features/auth/utils/refresh-token-if-expired'\n\ndiscussionApi.enhanceEndpoints({\n endpoints: {\n discussionStartDiscussion: {\n async onQueryStarted(args, { dispatch, queryFulfilled }) {\n dispatch(\n eventApi.util.updateQueryData('eventGetEventById', args, (draftEvent) => {\n draftEvent.event_type = 'DISCUSSION'\n }),\n )\n dispatch(\n eventApi.util.updateQueryData('eventGetCurrentEvent', undefined, (draftEvent) => {\n draftEvent.event_type = 'DISCUSSION'\n }),\n )\n try {\n await queryFulfilled\n } catch {}\n },\n },\n discussionGetCurrentDiscussionTopic: {\n async onCacheEntryAdded(arg, { cacheDataLoaded, cacheEntryRemoved, getState, dispatch }) {\n const { tokens } = (getState() as RootState).auth\n const { eventId } = arg\n if (tokens && eventId) {\n let ws\n // create a websocket connection when the cache subscription starts\n try {\n // wait for the initial query to resolve before proceeding\n await cacheDataLoaded\n const listener = (event: MessageEvent) => {\n const data = JSON.parse(event.data)\n // if (!isMessage(data) || data.channel !== arg) return TODO add isMessage validator schema\n console.log(data)\n switch (data.event_type) {\n case 'SET_DISCUSSION_TOPIC':\n dispatch(\n discussionApi.util.updateQueryData(\n 'discussionGetCurrentDiscussionTopic',\n { eventId: eventId },\n (draftTopic) => {\n draftTopic = data.event_message.discussion_topic\n return draftTopic\n // draftTopic.phrase =\n // data.event_message.discussion_topic.phrase\n },\n ),\n )\n break\n default:\n break\n }\n }\n ws = await createSocket(eventId, listener)\n // when data is received from the socket connection to the server,\n // if it is a message and for the appropriate channel,\n // update our query result with the received message\n } catch {\n // no-op in case `cacheEntryRemoved` resolves before `cacheDataLoaded`,\n // in which case `cacheDataLoaded` will throw\n }\n // cacheEntryRemoved will resolve when the cache subscription is no longer active\n await cacheEntryRemoved\n // perform cleanup steps once the `cacheEntryRemoved` promise resolves\n if (ws) {\n ws.close()\n }\n }\n },\n },\n },\n})\n\nexport { discussionApi }\n","import { baseApi as api } from '../api'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n documentsCreateNewDocument: build.mutation<\n DocumentsCreateNewDocumentApiResponse,\n DocumentsCreateNewDocumentApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/documents/document`,\n method: 'POST',\n body: queryArg.createNewDocumentRequest,\n }),\n }),\n documentsGetDocumentById: build.query<\n DocumentsGetDocumentByIdApiResponse,\n DocumentsGetDocumentByIdApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/documents/document/${queryArg.documentId}`,\n }),\n }),\n documentsDeleteDocumentById: build.mutation<\n DocumentsDeleteDocumentByIdApiResponse,\n DocumentsDeleteDocumentByIdApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/documents/document/${queryArg.documentId}`,\n method: 'DELETE',\n }),\n }),\n documentsGetDocuments: build.query<\n DocumentsGetDocumentsApiResponse,\n DocumentsGetDocumentsApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/documents/documents`,\n params: { query: queryArg.query },\n }),\n }),\n documentsSplitDocument: build.mutation<\n DocumentsSplitDocumentApiResponse,\n DocumentsSplitDocumentApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/documents/split_document`,\n method: 'POST',\n body: queryArg.splitDocumentRequest,\n }),\n }),\n documentsGetSplitDocumentStatus: build.query<\n DocumentsGetSplitDocumentStatusApiResponse,\n DocumentsGetSplitDocumentStatusApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/documents/split_document/${queryArg.jobId}`,\n }),\n }),\n documentsGetDocumentPages: build.query<\n DocumentsGetDocumentPagesApiResponse,\n DocumentsGetDocumentPagesApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/documents/document/${queryArg.documentId}/pages`,\n }),\n }),\n documentsExportScene: build.mutation<\n DocumentsExportSceneApiResponse,\n DocumentsExportSceneApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/documents/export_images_to_pdf`,\n method: 'POST',\n body: queryArg.bodyExportSceneApiV1ExtensionsDocumentsExportImagesToPdfPost,\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type DocumentsCreateNewDocumentApiResponse =\n /** status 201 Successful Response */ DocumentsDbModel\nexport type DocumentsCreateNewDocumentApiArg = {\n createNewDocumentRequest: CreateNewDocumentRequest\n}\nexport type DocumentsGetDocumentByIdApiResponse =\n /** status 200 Successful Response */ DocumentsDbModel\nexport type DocumentsGetDocumentByIdApiArg = {\n documentId: number\n}\nexport type DocumentsDeleteDocumentByIdApiResponse = /** status 204 Successful Response */ void\nexport type DocumentsDeleteDocumentByIdApiArg = {\n documentId: number\n}\nexport type DocumentsGetDocumentsApiResponse =\n /** status 200 Successful Response */ DocumentsDbModel[]\nexport type DocumentsGetDocumentsApiArg = {\n query?: string | null\n}\nexport type DocumentsSplitDocumentApiResponse =\n /** status 201 Successful Response */ SplitDocumentResponse\nexport type DocumentsSplitDocumentApiArg = {\n splitDocumentRequest: SplitDocumentRequest\n}\nexport type DocumentsGetSplitDocumentStatusApiResponse =\n /** status 200 Successful Response */ StatusResponse\nexport type DocumentsGetSplitDocumentStatusApiArg = {\n jobId: string\n}\nexport type DocumentsGetDocumentPagesApiResponse =\n /** status 200 Successful Response */ DocumentsToImagesDbModel[]\nexport type DocumentsGetDocumentPagesApiArg = {\n documentId: number\n}\nexport type DocumentsExportSceneApiResponse =\n /** status 200 Successful Response */ ExportImageToPdfResponse\nexport type DocumentsExportSceneApiArg = {\n bodyExportSceneApiV1ExtensionsDocumentsExportImagesToPdfPost: BodyExportSceneApiV1ExtensionsDocumentsExportImagesToPdfPost\n}\nexport type DocumentsDbModel = {\n id: number\n user_id: number\n document_type: string\n title?: string | null\n description?: string | null\n link: string\n preview?: string | null\n created_at?: string\n updated_at?: string\n deleted?: boolean\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type CreateNewDocumentRequest = {\n link: string\n document_type?: string | null\n title?: string | null\n description?: string | null\n}\nexport type SplitDocumentResponse = {\n job_id: string\n}\nexport type SplitDocumentRequest = {\n document_id: number\n}\nexport type StatusResponse = {\n status: string\n}\nexport type DocumentsToImagesDbModel = {\n id: number\n created_at?: string\n updated_at?: string\n image_link?: string | null\n document_id: number\n page_number: number\n height?: number | null\n width?: number | null\n}\nexport type ExportImageToPdfResponse = {\n link: string\n}\nexport type BodyExportSceneApiV1ExtensionsDocumentsExportImagesToPdfPost = {\n files: Blob[]\n}\nexport const {\n useDocumentsCreateNewDocumentMutation,\n useDocumentsGetDocumentByIdQuery,\n useLazyDocumentsGetDocumentByIdQuery,\n useDocumentsDeleteDocumentByIdMutation,\n useDocumentsGetDocumentsQuery,\n useLazyDocumentsGetDocumentsQuery,\n useDocumentsSplitDocumentMutation,\n useDocumentsGetSplitDocumentStatusQuery,\n useLazyDocumentsGetSplitDocumentStatusQuery,\n useDocumentsGetDocumentPagesQuery,\n useLazyDocumentsGetDocumentPagesQuery,\n useDocumentsExportSceneMutation,\n} = injectedRtkApi\n","import { api as documentsApi } from './auto-generated/documents'\n\ndocumentsApi.enhanceEndpoints({\n endpoints: {},\n})\n\nexport { documentsApi }\n","import { RootState } from '@app/store'\nimport { DEV } from '@config'\nimport { api as eventApi } from './auto-generated/event'\nimport { createSocket } from './ws'\nimport { agoraApi } from './agora'\nimport { geoguesserApi } from './geoguesser'\nimport { discussionApi } from './discussion'\n\neventApi.enhanceEndpoints({\n endpoints: {\n eventGetEventById: {\n async onCacheEntryAdded(\n arg,\n { updateCachedData, cacheDataLoaded, cacheEntryRemoved, getState, dispatch },\n ) {\n const { tokens } = (getState() as RootState).auth\n const { eventId } = arg\n if (tokens && eventId) {\n // create a websocket connection when the cache subscription starts\n let ws\n try {\n console.log('workin')\n // wait for the initial query to resolve before proceeding\n await cacheDataLoaded\n console.log('workin')\n const listener = (event: MessageEvent) => {\n const data = JSON.parse(event.data)\n // if (!isMessage(data) || data.channel !== arg) return TODO add isMessage validator schema\n if (DEV) console.log(data)\n switch (data.event_type) {\n case 'JOIN_ROOM':\n updateCachedData((draftEvent) => {\n if (\n draftEvent.users?.findIndex(\n (elem) => elem.id === data.event_message.user.id,\n ) === -1\n )\n draftEvent.users.push(data.event_message.user)\n })\n break\n case 'CHANGE_EVENT_TYPE':\n updateCachedData((draftEvent) => {\n if (data.event_message.new_type !== 'NONE') {\n draftEvent.event_type = data.event_message.new_type\n }\n })\n break\n case 'CHANGE_HOST':\n updateCachedData((draftEvent) => {\n draftEvent.host = data.event_message?.new_host\n })\n break\n case 'CHANGE_CURRENT_ROOM':\n updateCachedData((draftEvent) => {\n draftEvent.current_room_id = data.event_message?.new_room_id\n })\n break\n case 'AGORA_USER_CHANGED_ROOM':\n updateCachedData((draftEvent) => {\n draftEvent.users_partition = data.event_message.users_partition\n })\n break\n // case 'AGORA_CREATE_NEW_ROOM':\n // dispatch(\n // agoraApi.util.updateQueryData(\n // 'agoraGetRtcRooms',\n // { eventId },\n // (draftRtcRooms) => {\n // console.log(draftRtcRooms)\n // draftRtcRooms.push(data.event_message)\n // },\n // ),\n // )\n\n // break\n // case 'NEXT_ROUND':\n // dispatch(\n // geoguesserApi.endpoints.geoguesserGetAllGameResult.initiate(\n // {\n // eventId,\n // },\n // { forceRefetch: true },\n // ),\n // )\n // dispatch(\n // geoguesserApi.endpoints.geoguesserGetGameCoordinates.initiate(\n // {\n // eventId,\n // },\n // { forceRefetch: true },\n // ),\n // )\n // break\n // case 'SET_DISCUSSION_TOPIC':\n // dispatch(\n // discussionApi.util.updateQueryData(\n // 'discussionGetCurrentDiscussionTopic',\n // { eventId },\n // (draftTopic) => {\n // draftTopic = data.event_message.discussion_topic\n // return draftTopic\n // },\n // ),\n // )\n // break\n default:\n break\n }\n }\n ws = await createSocket(eventId, listener)\n\n // when data is received from the socket connection to the server,\n // if it is a message and for the appropriate channel,\n // update our query result with the received message\n // ws.addEventListener('message', listener)\n } catch (error) {\n console.log(error)\n // no-op in case `cacheEntryRemoved` resolves before `cacheDataLoaded`,\n // in which case `cacheDataLoaded` will throw\n }\n // cacheEntryRemoved will resolve when the cache subscription is no longer active\n await cacheEntryRemoved\n // perform cleanup steps once the `cacheEntryRemoved` promise resolves\n if (ws) {\n ws.close()\n }\n }\n },\n },\n // eventGetCurrentEvent: {\n // async onCacheEntryAdded(\n // arg,\n // { updateCachedData, cacheDataLoaded, cacheEntryRemoved, getState, dispatch },\n // ) {\n // const { tokens } = (getState() as RootState).auth\n // const { data: currentEvent } = await cacheDataLoaded\n // const eventId = currentEvent.event_id\n\n // // if (tokens && eventId) {\n // // // create a websocket connection when the cache subscription starts\n // // // const ws = createSocket(tokens?.access_token?.token, eventId)\n // // try {\n // // // wait for the initial query to resolve before proceeding\n\n // // // when data is received from the socket connection to the server,\n // // // if it is a message and for the appropriate channel,\n // // // update our query result with the received message\n // // const listener = (event: MessageEvent) => {\n // // const data = JSON.parse(event.data)\n // // // if (!isMessage(data) || data.channel !== arg) return TODO add isMessage validator schema\n // // updateCachedData((draftEvent) => {\n // // switch (data.event_type) {\n // // case 'JOIN_ROOM':\n // // if (\n // // draftEvent.users?.findIndex(\n // // (elem) => elem.id === data.event_message.user.id,\n // // ) === -1\n // // )\n // // draftEvent.users.push(data.event_message.user)\n // // break\n // // case 'CHANGE_EVENT_TYPE':\n // // console.log('event changed', data.event_message.new_type)\n // // if (data.event_message.new_type !== 'NONE') {\n // // draftEvent.event_type = data.event_message.new_type\n // // }\n // // break\n // // case 'CHANGE_HOST':\n // // draftEvent.host = data.event_message?.new_host\n // // break\n // // default:\n // // break\n // // }\n // // })\n // // }\n // // ws.addEventListener('message', listener)\n // // } catch {\n // // // no-op in case `cacheEntryRemoved` resolves before `cacheDataLoaded`,\n // // // in which case `cacheDataLoaded` will throw\n // // }\n // // // cacheEntryRemoved will resolve when the cache subscription is no longer active\n // // await cacheEntryRemoved\n // // // perform cleanup steps once the `cacheEntryRemoved` promise resolves\n // // ws.close()\n // // }\n // },\n // },\n eventParticipateInEvent: {\n async onQueryStarted(args, { dispatch, queryFulfilled, getState }) {\n try {\n await queryFulfilled\n const { user } = (getState() as RootState).auth\n dispatch(\n eventApi.util.updateQueryData('eventGetEventById', args, (draftEvent) => {\n draftEvent.participants = [...draftEvent.participants, user]\n }),\n )\n } catch {}\n },\n },\n eventDeleteParticipationInEvent: {\n async onQueryStarted(args, { dispatch, queryFulfilled, getState }) {\n try {\n await queryFulfilled\n const { user } = (getState() as RootState).auth\n dispatch(\n eventApi.util.updateQueryData('eventGetEventById', args, (draftEvent) => {\n let array = draftEvent.participants\n const index = array.indexOf(user)\n array.splice(index, 1)\n }),\n )\n } catch {}\n },\n },\n },\n})\n\nexport { eventApi }\n\nexport * from './auto-generated/event'\n","import { baseApi as api } from '../api'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n geoguesserGetGeoGuesserGamesConfig: build.query<\n GeoguesserGetGeoGuesserGamesConfigApiResponse,\n GeoguesserGetGeoGuesserGamesConfigApiArg\n >({\n query: () => ({ url: `/api/v1/extensions/geogame/config` }),\n }),\n geoguesserJoinGame: build.mutation({\n query: (queryArg) => ({\n url: `/api/v1/extensions/geogame/game/${queryArg.eventId}/start`,\n method: 'POST',\n params: { exit_: queryArg.exit },\n }),\n }),\n geoguesserGetGame: build.query({\n query: (queryArg) => ({ url: `/api/v1/extensions/geogame/game/${queryArg.eventId}` }),\n }),\n geoguesserMakeGuess: build.mutation({\n query: (queryArg) => ({\n url: `/api/v1/extensions/geogame/game/${queryArg.eventId}/guess`,\n method: 'POST',\n body: queryArg.coordinatesModel,\n }),\n }),\n geoguesserGetGameCoordinates: build.query<\n GeoguesserGetGameCoordinatesApiResponse,\n GeoguesserGetGameCoordinatesApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/geogame/game/${queryArg.eventId}/coordinates`,\n }),\n }),\n geoguesserExitGame: build.mutation({\n query: (queryArg) => ({\n url: `/api/v1/extensions/geogame/game/${queryArg.eventId}/exit`,\n method: 'POST',\n }),\n }),\n geoguesserGetAllGameResult: build.query<\n GeoguesserGetAllGameResultApiResponse,\n GeoguesserGetAllGameResultApiArg\n >({\n query: (queryArg) => ({ url: `/api/v1/extensions/geogame/game/${queryArg.eventId}/results` }),\n }),\n geoguesserGetRoundsData: build.query<\n GeoguesserGetRoundsDataApiResponse,\n GeoguesserGetRoundsDataApiArg\n >({\n query: (queryArg) => ({ url: `/api/v1/extensions/geogame/game/${queryArg.eventId}/rounds` }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type GeoguesserGetGeoGuesserGamesConfigApiResponse =\n /** status 200 Successful Response */ GeoGameConfig\nexport type GeoguesserGetGeoGuesserGamesConfigApiArg = void\nexport type GeoguesserJoinGameApiResponse = /** status 200 Successful Response */ any\nexport type GeoguesserJoinGameApiArg = {\n eventId: string\n exit?: boolean\n}\nexport type GeoguesserGetGameApiResponse = /** status 200 Successful Response */ GeoGuesserGame\nexport type GeoguesserGetGameApiArg = {\n eventId: string\n}\nexport type GeoguesserMakeGuessApiResponse = /** status 200 Successful Response */ any\nexport type GeoguesserMakeGuessApiArg = {\n eventId: string\n coordinatesModel: CoordinatesModel\n}\nexport type GeoguesserGetGameCoordinatesApiResponse =\n /** status 200 Successful Response */ CoordinatesModel\nexport type GeoguesserGetGameCoordinatesApiArg = {\n eventId: string\n}\nexport type GeoguesserExitGameApiResponse = /** status 201 Successful Response */ any\nexport type GeoguesserExitGameApiArg = {\n eventId: string\n}\nexport type GeoguesserGetAllGameResultApiResponse =\n /** status 200 Successful Response */ GameGetCorrectResponse[]\nexport type GeoguesserGetAllGameResultApiArg = {\n eventId: string\n}\nexport type GeoguesserGetRoundsDataApiResponse =\n /** status 200 Successful Response */ RoundsDataResponse\nexport type GeoguesserGetRoundsDataApiArg = {\n eventId: string\n}\nexport type GeoGameConfig = {\n min_number_users: number\n max_number_users: number\n time_to_guess: number\n max_number_of_rounds: number\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type GameStatus = 'PENDING' | 'STARTED' | 'FINISHED' | 'CANCELED'\nexport type GeoGuesserGame = {\n created_time: string\n status: GameStatus\n end_time?: string | null\n started_time?: string | null\n}\nexport type CoordinatesModel = {\n lon: number\n lat: number\n}\nexport type DistanceUnit = 'KM' | 'MI'\nexport type GameGetCorrectResponse = {\n lon: number\n lat: number\n guess_lat: number\n guess_lon: number\n distance: number\n distance_unit?: DistanceUnit | null\n score: number\n round_number: number\n description: string\n}\nexport type RoundsDataResponse = {\n current_round: number\n score: number\n}\nexport const {\n useGeoguesserGetGeoGuesserGamesConfigQuery,\n useLazyGeoguesserGetGeoGuesserGamesConfigQuery,\n useGeoguesserJoinGameMutation,\n useGeoguesserGetGameQuery,\n useLazyGeoguesserGetGameQuery,\n useGeoguesserMakeGuessMutation,\n useGeoguesserGetGameCoordinatesQuery,\n useLazyGeoguesserGetGameCoordinatesQuery,\n useGeoguesserExitGameMutation,\n useGeoguesserGetAllGameResultQuery,\n useLazyGeoguesserGetAllGameResultQuery,\n useGeoguesserGetRoundsDataQuery,\n useLazyGeoguesserGetRoundsDataQuery,\n} = injectedRtkApi\n","import { api as geoguesserApi } from './auto-generated/geoguesser'\nimport { api as eventApi } from './auto-generated/event'\nimport { RootState } from '@app/store'\nimport { createSocket } from './ws'\n\ngeoguesserApi.enhanceEndpoints({\n endpoints: {\n geoguesserJoinGame: {\n async onQueryStarted(args, { dispatch, queryFulfilled }) {\n dispatch(\n eventApi.util.updateQueryData('eventGetEventById', args, (draftEvent) => {\n draftEvent.event_type = 'GEO_GAME'\n }),\n )\n dispatch(\n eventApi.util.updateQueryData('eventGetCurrentEvent', undefined, (draftEvent) => {\n draftEvent.event_type = 'GEO_GAME'\n }),\n )\n try {\n await queryFulfilled\n } catch {}\n },\n },\n geoguesserGetAllGameResult: {\n async onCacheEntryAdded(arg, api) {\n const { tokens } = (api.getState() as RootState).auth\n const { eventId } = arg\n if (tokens && eventId) {\n let ws\n try {\n // wait for the initial query to resolve before proceeding\n await api.cacheDataLoaded\n const listener = (event: MessageEvent) => {\n const data = JSON.parse(event.data)\n switch (data.event_type) {\n case 'NEXT_ROUND':\n api.dispatch(\n geoguesserApi.endpoints.geoguesserGetAllGameResult.initiate(\n {\n eventId,\n },\n { forceRefetch: true },\n ),\n )\n api.dispatch(\n geoguesserApi.endpoints.geoguesserGetGameCoordinates.initiate(\n {\n eventId,\n },\n { forceRefetch: true },\n ),\n )\n break\n default:\n break\n }\n }\n ws = await createSocket(eventId, listener)\n // when data is received from the socket connection to the server,\n // if it is a message and for the appropriate channel,\n // update our query result with the received message\n } catch {\n // no-op in case `cacheEntryRemoved` resolves before `cacheDataLoaded`,\n // in which case `cacheDataLoaded` will throw\n }\n // cacheEntryRemoved will resolve when the cache subscription is no longer active\n await api.cacheEntryRemoved\n // perform cleanup steps once the `cacheEntryRemoved` promise resolves\n if (ws) {\n ws.close()\n }\n }\n },\n },\n },\n})\n\nexport { geoguesserApi }\n","import { baseApi as api } from '../api'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n hyperbeamStartHyperbeamVm: build.mutation<\n HyperbeamStartHyperbeamVmApiResponse,\n HyperbeamStartHyperbeamVmApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/hyperbeam/${queryArg.eventId}/start`,\n method: 'POST',\n params: { exit_: queryArg.exit },\n }),\n }),\n hyperbeamGetHyperbeamEvent: build.query<\n HyperbeamGetHyperbeamEventApiResponse,\n HyperbeamGetHyperbeamEventApiArg\n >({\n query: (queryArg) => ({ url: `/api/v1/extensions/hyperbeam/${queryArg.eventId}` }),\n }),\n hyperbeamShutdownHyperbeamVm: build.mutation<\n HyperbeamShutdownHyperbeamVmApiResponse,\n HyperbeamShutdownHyperbeamVmApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/hyperbeam/${queryArg.eventId}/exit`,\n method: 'POST',\n }),\n }),\n hyperbeamGetHyperbeamSessions: build.query<\n HyperbeamGetHyperbeamSessionsApiResponse,\n HyperbeamGetHyperbeamSessionsApiArg\n >({\n query: () => ({ url: `/api/v1/extensions/hyperbeam/sessions` }),\n }),\n hyperbeamDeleteHyperbeamSession: build.mutation<\n HyperbeamDeleteHyperbeamSessionApiResponse,\n HyperbeamDeleteHyperbeamSessionApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/hyperbeam/sessions/${queryArg.sessionId}`,\n method: 'DELETE',\n }),\n }),\n hyperbeamGetHyperbeamSession: build.query<\n HyperbeamGetHyperbeamSessionApiResponse,\n HyperbeamGetHyperbeamSessionApiArg\n >({\n query: (queryArg) => ({ url: `/api/v1/extensions/hyperbeam/sessions/${queryArg.sessionId}` }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type HyperbeamStartHyperbeamVmApiResponse = /** status 200 Successful Response */ any\nexport type HyperbeamStartHyperbeamVmApiArg = {\n eventId: string\n exit?: boolean\n}\nexport type HyperbeamGetHyperbeamEventApiResponse = /** status 200 Successful Response */ any\nexport type HyperbeamGetHyperbeamEventApiArg = {\n eventId: string\n}\nexport type HyperbeamShutdownHyperbeamVmApiResponse = /** status 200 Successful Response */ any\nexport type HyperbeamShutdownHyperbeamVmApiArg = {\n eventId: string\n}\nexport type HyperbeamGetHyperbeamSessionsApiResponse =\n /** status 200 Successful Response */ HyperbeamSessionResponse[]\nexport type HyperbeamGetHyperbeamSessionsApiArg = void\nexport type HyperbeamDeleteHyperbeamSessionApiResponse = /** status 200 Successful Response */ any\nexport type HyperbeamDeleteHyperbeamSessionApiArg = {\n sessionId: string\n}\nexport type HyperbeamGetHyperbeamSessionApiResponse =\n /** status 200 Successful Response */ HyperbeamSessionResponse\nexport type HyperbeamGetHyperbeamSessionApiArg = {\n sessionId: string\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type HyperbeamSessionResponse = {\n session_id: string\n embed_url: string\n admin_token: string\n event_id?: string | null\n termination_date?: string | null\n}\nexport const {\n useHyperbeamStartHyperbeamVmMutation,\n useHyperbeamGetHyperbeamEventQuery,\n useLazyHyperbeamGetHyperbeamEventQuery,\n useHyperbeamShutdownHyperbeamVmMutation,\n useHyperbeamGetHyperbeamSessionsQuery,\n useLazyHyperbeamGetHyperbeamSessionsQuery,\n useHyperbeamDeleteHyperbeamSessionMutation,\n useHyperbeamGetHyperbeamSessionQuery,\n useLazyHyperbeamGetHyperbeamSessionQuery,\n} = injectedRtkApi\n","import { api as hyperbeamApi } from './auto-generated/hyperbeam'\nimport { api as eventApi } from './auto-generated/event'\n\nhyperbeamApi.enhanceEndpoints({\n endpoints: {\n hyperbeamStartHyperbeamVm: {\n async onQueryStarted(args, { dispatch, queryFulfilled }) {\n dispatch(\n eventApi.util.updateQueryData('eventGetEventById', args, (draftEvent) => {\n draftEvent.event_type = 'HYPERBEAM'\n }),\n )\n dispatch(\n eventApi.util.updateQueryData('eventGetCurrentEvent', undefined, (draftEvent) => {\n draftEvent.event_type = 'HYPERBEAM'\n }),\n )\n try {\n await queryFulfilled\n } catch {}\n },\n },\n },\n})\n\nexport { hyperbeamApi }\n","import { baseApi as api } from '../api'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n languagesGetLanguages: build.query<\n LanguagesGetLanguagesApiResponse,\n LanguagesGetLanguagesApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/sdk/languages/languages`,\n params: { sort_country: queryArg.sortCountry },\n }),\n }),\n languagesGetLocation: build.query({\n query: () => ({ url: `/api/v1/sdk/languages/location` }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type LanguagesGetLanguagesApiResponse =\n /** status 200 Successful Response */ LanguageDbModel[]\nexport type LanguagesGetLanguagesApiArg = {\n sortCountry?: boolean | null\n}\nexport type LanguagesGetLocationApiResponse = /** status 200 Successful Response */ any\nexport type LanguagesGetLocationApiArg = void\nexport type LanguageDbModel = {\n id: number\n english_name?: string | null\n native_name?: string | null\n code?: string | null\n is_room_language?: boolean | null\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport const {\n useLanguagesGetLanguagesQuery,\n useLazyLanguagesGetLanguagesQuery,\n useLanguagesGetLocationQuery,\n useLazyLanguagesGetLocationQuery,\n} = injectedRtkApi\n","import { api as languagesApi } from './auto-generated/languages'\n\nlanguagesApi.enhanceEndpoints({\n endpoints: {},\n})\n\nexport { languagesApi }\n","import { baseApi as api } from '../api'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n localizationGetLocalizationFile: build.query<\n LocalizationGetLocalizationFileApiResponse,\n LocalizationGetLocalizationFileApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/sdk/localization/${queryArg.languageCode}.json`,\n params: { ns: queryArg.ns, nested: queryArg.nested },\n }),\n }),\n localizationAddLocalization: build.mutation<\n LocalizationAddLocalizationApiResponse,\n LocalizationAddLocalizationApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/sdk/localization/add/${queryArg.languageCode}`,\n method: 'POST',\n body: queryArg.addKeyValRequest,\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type LocalizationGetLocalizationFileApiResponse = /** status 200 Successful Response */ any\nexport type LocalizationGetLocalizationFileApiArg = {\n languageCode: string\n ns?: string | null\n nested?: boolean\n}\nexport type LocalizationAddLocalizationApiResponse = /** status 201 Successful Response */ any\nexport type LocalizationAddLocalizationApiArg = {\n languageCode: string\n addKeyValRequest: AddKeyValRequest\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type AddKeyValRequest = {\n key: string\n val: string\n namespace?: string | null\n}\nexport const {\n useLocalizationGetLocalizationFileQuery,\n useLazyLocalizationGetLocalizationFileQuery,\n useLocalizationAddLocalizationMutation,\n} = injectedRtkApi\n","import { api as localizationApi } from './auto-generated/localization'\n\nlocalizationApi.enhanceEndpoints({\n endpoints: {},\n})\n\nexport { localizationApi }\n","import { baseApi as api } from '../api'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n revisionGetRevision: build.query({\n query: (queryArg) => ({\n url: `/api/v1/extensions/revision/revisions`,\n params: { limit: queryArg.limit, offset: queryArg.offset, language: queryArg.language },\n }),\n }),\n revisionDeleteRevision: build.mutation<\n RevisionDeleteRevisionApiResponse,\n RevisionDeleteRevisionApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/revision/revision/`,\n method: 'DELETE',\n params: { revision_id: queryArg.revisionId },\n }),\n }),\n revisionCreateTranscription: build.mutation<\n RevisionCreateTranscriptionApiResponse,\n RevisionCreateTranscriptionApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/revision/transcript`,\n method: 'POST',\n body: queryArg.transcriptionRequest,\n }),\n }),\n revisionGetUserTranscription: build.query<\n RevisionGetUserTranscriptionApiResponse,\n RevisionGetUserTranscriptionApiArg\n >({\n query: () => ({ url: `/api/v1/extensions/revision/transcripts` }),\n }),\n revisionUploadChunkedAudio: build.mutation<\n RevisionUploadChunkedAudioApiResponse,\n RevisionUploadChunkedAudioApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/revision/record/upload_chunked_audio/${queryArg.recordId}/${queryArg.chunkNumber}`,\n method: 'POST',\n body: queryArg.bodyUploadChunkedAudioApiV1ExtensionsRevisionRecordUploadChunkedAudioRecordIdChunkNumberPost,\n params: { live_transcribe: queryArg.liveTranscribe, is_exam_mode: queryArg.isExamMode },\n }),\n }),\n revisionStopRecording: build.mutation<\n RevisionStopRecordingApiResponse,\n RevisionStopRecordingApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/revision/record/stop_recording/${queryArg.recordId}`,\n method: 'POST',\n params: { test_myself: queryArg.testMyself },\n }),\n }),\n revisionCancelRecording: build.mutation<\n RevisionCancelRecordingApiResponse,\n RevisionCancelRecordingApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/revision/record/${queryArg.recordId}`,\n method: 'DELETE',\n }),\n }),\n revisionCreateChunkRecordingSettings: build.mutation<\n RevisionCreateChunkRecordingSettingsApiResponse,\n RevisionCreateChunkRecordingSettingsApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/revision/recording/${queryArg.recordingId}/settings`,\n method: 'POST',\n body: queryArg.createRecordingChunkSettingsRequest,\n }),\n }),\n revisionListRecordings: build.query<\n RevisionListRecordingsApiResponse,\n RevisionListRecordingsApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/revision/recordings`,\n params: {\n test_myself: queryArg.testMyself,\n limit: queryArg.limit,\n offset: queryArg.offset,\n },\n }),\n }),\n revisionUpdateRecording: build.mutation<\n RevisionUpdateRecordingApiResponse,\n RevisionUpdateRecordingApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/revision/recordings/${queryArg.id}`,\n method: 'PUT',\n body: queryArg.updateRecordingRequest,\n }),\n }),\n revisionGetRecording: build.query({\n query: (queryArg) => ({ url: `/api/v1/extensions/revision/recordings/${queryArg.id}` }),\n }),\n revisionDeleteRecording: build.mutation<\n RevisionDeleteRecordingApiResponse,\n RevisionDeleteRecordingApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/revision/recordings/${queryArg.id}`,\n method: 'DELETE',\n }),\n }),\n revisionCreateFeedbackRequests: build.mutation<\n RevisionCreateFeedbackRequestsApiResponse,\n RevisionCreateFeedbackRequestsApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/revision/feedback_request`,\n method: 'POST',\n body: queryArg.askFeedbackRequest,\n }),\n }),\n revisionListFeedbackRequests: build.query<\n RevisionListFeedbackRequestsApiResponse,\n RevisionListFeedbackRequestsApiArg\n >({\n query: () => ({ url: `/api/v1/extensions/revision/feedback_requests` }),\n }),\n revisionCreateTeacherFeedback: build.mutation<\n RevisionCreateTeacherFeedbackApiResponse,\n RevisionCreateTeacherFeedbackApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/revision/feedback`,\n method: 'POST',\n body: queryArg.createFeedbackRequest,\n }),\n }),\n revisionGetFeedbacks: build.query({\n query: () => ({ url: `/api/v1/extensions/revision/feedbacks` }),\n }),\n revisionDeleteFeedback: build.mutation<\n RevisionDeleteFeedbackApiResponse,\n RevisionDeleteFeedbackApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/revision/feedback/${queryArg.id}`,\n method: 'DELETE',\n }),\n }),\n revisionCreateAudioTeacherFeedback: build.mutation<\n RevisionCreateAudioTeacherFeedbackApiResponse,\n RevisionCreateAudioTeacherFeedbackApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/revision/audio_feedback`,\n method: 'POST',\n body: queryArg.bodyCreateAudioTeacherFeedbackApiV1ExtensionsRevisionAudioFeedbackPost,\n }),\n }),\n revisionAddUserPreferenceOnFeedback: build.mutation<\n RevisionAddUserPreferenceOnFeedbackApiResponse,\n RevisionAddUserPreferenceOnFeedbackApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/revision/feedback/${queryArg.id}/user_taste`,\n method: 'POST',\n body: queryArg.addUserPreferenceRequest,\n }),\n }),\n revisionGetUserPreferenceOnFeedback: build.query<\n RevisionGetUserPreferenceOnFeedbackApiResponse,\n RevisionGetUserPreferenceOnFeedbackApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/revision/feedback/${queryArg.id}/user_taste`,\n }),\n }),\n revisionTranscriptionWebhook: build.mutation<\n RevisionTranscriptionWebhookApiResponse,\n RevisionTranscriptionWebhookApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/revision/transcription/webhook`,\n method: 'POST',\n body: queryArg.transcriptionWebHookRequest,\n }),\n }),\n revisionCreateRecordingChunk: build.mutation<\n RevisionCreateRecordingChunkApiResponse,\n RevisionCreateRecordingChunkApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/revision/recording/${queryArg.recordingId}/chunk`,\n method: 'POST',\n body: queryArg.createRecordingChunkRequest,\n }),\n }),\n revisionGetDefaultTeacher: build.query<\n RevisionGetDefaultTeacherApiResponse,\n RevisionGetDefaultTeacherApiArg\n >({\n query: () => ({ url: `/api/v1/extensions/revision/default_teacher` }),\n }),\n revisionGetQuestions: build.query({\n query: (queryArg) => ({\n url: `/api/v1/extensions/revision/${queryArg.recordingId}/questions`,\n params: { limit: queryArg.limit },\n }),\n }),\n revisionGetSummary: build.query({\n query: (queryArg) => ({ url: `/api/v1/extensions/revision/${queryArg.recordingId}/summary` }),\n }),\n revisionGetTtsUrl: build.mutation({\n query: (queryArg) => ({\n url: `/api/v1/extensions/revision/convert/tts`,\n method: 'POST',\n body: queryArg.ttsRequest,\n }),\n }),\n revisionGetActiveStudents: build.query<\n RevisionGetActiveStudentsApiResponse,\n RevisionGetActiveStudentsApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/revision/stats/active-students`,\n params: {\n date_from: queryArg.dateFrom,\n date_to: queryArg.dateTo,\n granularity: queryArg.granularity,\n years: queryArg.years,\n cohorts: queryArg.cohorts,\n teacher_ids: queryArg.teacherIds,\n student_ids: queryArg.studentIds,\n },\n }),\n }),\n revisionGetGeneralStats: build.query<\n RevisionGetGeneralStatsApiResponse,\n RevisionGetGeneralStatsApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/revision/stats/general`,\n params: {\n years: queryArg.years,\n cohorts: queryArg.cohorts,\n teacher_ids: queryArg.teacherIds,\n student_ids: queryArg.studentIds,\n },\n }),\n }),\n revisionGetAiAnalysis: build.query<\n RevisionGetAiAnalysisApiResponse,\n RevisionGetAiAnalysisApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/revision/stats/ai-analysis`,\n params: { page: queryArg.page, page_size: queryArg.pageSize },\n }),\n }),\n revisionGetStudentPerformance: build.query<\n RevisionGetStudentPerformanceApiResponse,\n RevisionGetStudentPerformanceApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/revision/status/student-performance`,\n params: {\n date_from: queryArg.dateFrom,\n date_to: queryArg.dateTo,\n granularity: queryArg.granularity,\n feedback_type: queryArg.feedbackType,\n student_ids: queryArg.studentIds,\n teacher_ids: queryArg.teacherIds,\n cohorts: queryArg.cohorts,\n },\n }),\n }),\n revisionGetRecordingLimits: build.query<\n RevisionGetRecordingLimitsApiResponse,\n RevisionGetRecordingLimitsApiArg\n >({\n query: () => ({ url: `/api/v1/extensions/revision/recordings-limits` }),\n }),\n revisionProcessRecording: build.mutation<\n RevisionProcessRecordingApiResponse,\n RevisionProcessRecordingApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/revision/recordings/${queryArg.id}/process`,\n method: 'POST',\n }),\n }),\n revisionGetUsers: build.query({\n query: (queryArg) => ({\n url: `/api/v1/extensions/revision/users`,\n params: { role_filter: queryArg.roleFilter },\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type RevisionGetRevisionApiResponse = /** status 200 Successful Response */ WordDbModel[]\nexport type RevisionGetRevisionApiArg = {\n limit?: number | null\n offset?: number | null\n language?: string | null\n}\nexport type RevisionDeleteRevisionApiResponse = /** status 204 Successful Response */ void\nexport type RevisionDeleteRevisionApiArg = {\n revisionId: number\n}\nexport type RevisionCreateTranscriptionApiResponse =\n /** status 201 Successful Response */ TranscriptionResponse\nexport type RevisionCreateTranscriptionApiArg = {\n transcriptionRequest: TranscriptionRequest\n}\nexport type RevisionGetUserTranscriptionApiResponse =\n /** status 200 Successful Response */ TranscriptionResponse[]\nexport type RevisionGetUserTranscriptionApiArg = void\nexport type RevisionUploadChunkedAudioApiResponse = /** status 200 Successful Response */ any\nexport type RevisionUploadChunkedAudioApiArg = {\n recordId: string\n chunkNumber: number\n liveTranscribe?: boolean | null\n isExamMode?: boolean | null\n bodyUploadChunkedAudioApiV1ExtensionsRevisionRecordUploadChunkedAudioRecordIdChunkNumberPost: BodyUploadChunkedAudioApiV1ExtensionsRevisionRecordUploadChunkedAudioRecordIdChunkNumberPost\n}\nexport type RevisionStopRecordingApiResponse = /** status 200 Successful Response */ any\nexport type RevisionStopRecordingApiArg = {\n recordId: string\n testMyself?: boolean | null\n}\nexport type RevisionCancelRecordingApiResponse = /** status 204 Successful Response */ void\nexport type RevisionCancelRecordingApiArg = {\n recordId: string\n}\nexport type RevisionCreateChunkRecordingSettingsApiResponse =\n /** status 201 Successful Response */ any\nexport type RevisionCreateChunkRecordingSettingsApiArg = {\n recordingId: string\n createRecordingChunkSettingsRequest: CreateRecordingChunkSettingsRequest\n}\nexport type RevisionListRecordingsApiResponse =\n /** status 200 Successful Response */ RecordingSmallerResponse[]\nexport type RevisionListRecordingsApiArg = {\n testMyself?: boolean | null\n limit?: number | null\n offset?: number | null\n}\nexport type RevisionUpdateRecordingApiResponse =\n /** status 200 Successful Response */ RecordingResponse\nexport type RevisionUpdateRecordingApiArg = {\n id: number\n updateRecordingRequest: UpdateRecordingRequest\n}\nexport type RevisionGetRecordingApiResponse =\n /** status 200 Successful Response */ RecordingResponse\nexport type RevisionGetRecordingApiArg = {\n id: number\n}\nexport type RevisionDeleteRecordingApiResponse = /** status 200 Successful Response */ any\nexport type RevisionDeleteRecordingApiArg = {\n id: number\n}\nexport type RevisionCreateFeedbackRequestsApiResponse =\n /** status 201 Successful Response */ AskFeedbackResponse\nexport type RevisionCreateFeedbackRequestsApiArg = {\n askFeedbackRequest: AskFeedbackRequest\n}\nexport type RevisionListFeedbackRequestsApiResponse =\n /** status 200 Successful Response */ ListFeedbackRequestResponse\nexport type RevisionListFeedbackRequestsApiArg = void\nexport type RevisionCreateTeacherFeedbackApiResponse =\n /** status 201 Successful Response */ CreateFeedbackResponse\nexport type RevisionCreateTeacherFeedbackApiArg = {\n createFeedbackRequest: CreateFeedbackRequest\n}\nexport type RevisionGetFeedbacksApiResponse =\n /** status 200 Successful Response */ RecordingChunkCommentResponse[]\nexport type RevisionGetFeedbacksApiArg = void\nexport type RevisionDeleteFeedbackApiResponse =\n /** status 200 Successful Response */ DeleteChunkCommentResponse\nexport type RevisionDeleteFeedbackApiArg = {\n id: number\n}\nexport type RevisionCreateAudioTeacherFeedbackApiResponse =\n /** status 201 Successful Response */ CreateFeedbackResponse\nexport type RevisionCreateAudioTeacherFeedbackApiArg = {\n bodyCreateAudioTeacherFeedbackApiV1ExtensionsRevisionAudioFeedbackPost: BodyCreateAudioTeacherFeedbackApiV1ExtensionsRevisionAudioFeedbackPost\n}\nexport type RevisionAddUserPreferenceOnFeedbackApiResponse =\n /** status 201 Successful Response */ UserPreferenceResponse | null\nexport type RevisionAddUserPreferenceOnFeedbackApiArg = {\n id: number\n addUserPreferenceRequest: AddUserPreferenceRequest\n}\nexport type RevisionGetUserPreferenceOnFeedbackApiResponse =\n /** status 200 Successful Response */ UserPreferenceResponse | null\nexport type RevisionGetUserPreferenceOnFeedbackApiArg = {\n id: number\n}\nexport type RevisionTranscriptionWebhookApiResponse = /** status 200 Successful Response */ any\nexport type RevisionTranscriptionWebhookApiArg = {\n transcriptionWebHookRequest: TranscriptionWebHookRequest\n}\nexport type RevisionCreateRecordingChunkApiResponse =\n /** status 201 Successful Response */ CreateRecordingChunkResponse\nexport type RevisionCreateRecordingChunkApiArg = {\n recordingId: number\n createRecordingChunkRequest: CreateRecordingChunkRequest\n}\nexport type RevisionGetDefaultTeacherApiResponse = /** status 200 Successful Response */ any\nexport type RevisionGetDefaultTeacherApiArg = void\nexport type RevisionGetQuestionsApiResponse = /** status 200 Successful Response */ QuestionResponse\nexport type RevisionGetQuestionsApiArg = {\n recordingId: string\n limit?: number\n}\nexport type RevisionGetSummaryApiResponse =\n /** status 200 Successful Response */ RecordingSummaryResponse\nexport type RevisionGetSummaryApiArg = {\n recordingId: number\n}\nexport type RevisionGetTtsUrlApiResponse = /** status 200 Successful Response */ TtsResponse\nexport type RevisionGetTtsUrlApiArg = {\n ttsRequest: TtsRequest\n}\nexport type RevisionGetActiveStudentsApiResponse =\n /** status 200 Successful Response */ ActiveStudentsResponse[]\nexport type RevisionGetActiveStudentsApiArg = {\n dateFrom: string\n dateTo: string\n granularity: string\n years?: number[] | null\n cohorts?: string[] | null\n teacherIds?: number[] | null\n studentIds?: number[] | null\n}\nexport type RevisionGetGeneralStatsApiResponse =\n /** status 200 Successful Response */ GeneralStatsResponse\nexport type RevisionGetGeneralStatsApiArg = {\n years?: number[] | null\n cohorts?: string[] | null\n teacherIds?: number[] | null\n studentIds?: number[] | null\n}\nexport type RevisionGetAiAnalysisApiResponse =\n /** status 200 Successful Response */ AiAnalysisListResponse\nexport type RevisionGetAiAnalysisApiArg = {\n page?: number\n pageSize?: number\n}\nexport type RevisionGetStudentPerformanceApiResponse =\n /** status 200 Successful Response */ StudentPerformanceResponse\nexport type RevisionGetStudentPerformanceApiArg = {\n dateFrom: string\n dateTo: string\n granularity?: string\n feedbackType?: string\n studentIds?: number[] | null\n teacherIds?: number[] | null\n cohorts?: string[] | null\n}\nexport type RevisionGetRecordingLimitsApiResponse =\n /** status 200 Successful Response */ RecordingLimitsResponse\nexport type RevisionGetRecordingLimitsApiArg = void\nexport type RevisionProcessRecordingApiResponse = /** status 200 Successful Response */ any\nexport type RevisionProcessRecordingApiArg = {\n id: number\n}\nexport type RevisionGetUsersApiResponse = /** status 200 Successful Response */ UserListResponse[]\nexport type RevisionGetUsersApiArg = {\n roleFilter?: UserRoleFilter\n}\nexport type WordDbModel = {\n id: number\n word: string\n complexity: number\n language_id: number\n created_at?: string\n updated_at?: string\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type TranscriptionResponse = {\n id: number\n transcript_url: string\n audio_url: string\n correction_url: string\n}\nexport type TranscriptionRequest = {\n transcript: string\n audio: string\n correction: string\n user_id: number\n}\nexport type BodyUploadChunkedAudioApiV1ExtensionsRevisionRecordUploadChunkedAudioRecordIdChunkNumberPost =\n {\n file: Blob\n }\nexport type CreateRecordingChunkSettingsRequest = {\n chunk_size: number\n channels?: number | null\n sample_rate?: number | null\n sample_width?: number | null\n event_id?: string | null\n}\nexport type RecordingSmallerResponse = {\n id: number\n audio_url: string\n language?: string | null\n duration: number\n processed: boolean\n created_at: string\n updated_at: string\n processing_status?: string | null\n locked?: boolean\n test_myself?: boolean\n}\nexport type PublicUserProfile = {\n id: number\n username: string\n image?: string | null\n full_name?: string | null\n avatar?: string | null\n}\nexport type RecordingChunkCommentResponse = {\n id: number\n comment?: string | null\n audio_comment_url?: string | null\n is_ai: boolean\n user?: PublicUserProfile | null\n likes: object\n dislikes: object\n created_at: string\n updated_at: string\n feedback?: string | null\n corrected_sentence?: string | null\n ext?: object | null\n comment_type?: string | null\n video_url?: string | null\n}\nexport type RecordingChunkResponse = {\n id: number\n start_time: number\n end_time: number\n comments: RecordingChunkCommentResponse[]\n created_at: string\n updated_at: string\n error_type?: string | null\n}\nexport type RecordingResponse = {\n id: number\n audio_url: string\n processed_audio_url?: string | null\n transcript_url?: string | null\n event_id?: number | null\n lesson_exist: boolean\n language?: string | null\n duration: number\n processed: boolean\n chunks: RecordingChunkResponse[]\n created_at: string\n updated_at: string\n ext?: object | null\n processing_status?: string | null\n locked?: boolean\n test_myself?: boolean\n}\nexport type UpdateRecordingRequest = {\n reviewed: boolean\n}\nexport type AskFeedbackResponse = {\n id: number\n user_id: number\n teacher_id: number\n recording_id: number\n status: string\n created_at: string\n}\nexport type AskFeedbackRequest = {\n recording_id: number\n teacher_id: number\n}\nexport type FeedbackRequestResponse = {\n id: number\n status: string\n teacher_id: number\n user_id: number\n recording_id: number\n student_display_name?: string | null\n teacher_display_name?: string | null\n created_at: string\n}\nexport type ListFeedbackRequestResponse = {\n received?: FeedbackRequestResponse[] | null\n sent?: FeedbackRequestResponse[] | null\n}\nexport type CreateFeedbackResponse = {\n id: number\n user_id: number\n comment?: string | null\n audio_comment_url?: string | null\n video_url?: string | null\n is_ai: boolean\n created_at: string\n}\nexport type CreateFeedbackRequest = {\n recording_id: number\n comment?: string | null\n start_time: number\n end_time: number\n video_url?: string | null\n}\nexport type DeleteChunkCommentResponse = {\n id: number\n recording_id: number\n}\nexport type BodyCreateAudioTeacherFeedbackApiV1ExtensionsRevisionAudioFeedbackPost = {\n recording_id: number\n start_time: number\n end_time: number\n file: Blob\n}\nexport type UserPreferenceResponse = {\n id: number\n feedback_id: number\n recording_id: number\n preference?: boolean | null\n created_at: string\n}\nexport type AddUserPreferenceRequest = {\n taste?: boolean | null\n}\nexport type AlignedSentences = {\n sentence: string\n start: number\n end: number\n}\nexport type TranscriptionWebHookRequest = {\n recording_id: number\n aligned_sentences: AlignedSentences[]\n subtitle: string\n passcode: string\n detected_lang: string\n result: object\n}\nexport type CreateRecordingChunkResponse = {\n id: number\n recording_id: number\n start_time: number\n end_time: number\n}\nexport type CreateRecordingChunkRequest = {\n start_time: number\n end_time: number\n}\nexport type Question = {\n question: string\n tts_url?: string | null\n}\nexport type QuestionResponse = {\n questions: Question[]\n}\nexport type RecordingSummaryResponse = {\n ideation: object\n grammar: object\n development: object\n recording_id: number\n rephrases: any[]\n vocabulary: object\n fluency: object\n}\nexport type TtsResponse = {\n tts_url: string\n}\nexport type TtsRequest = {\n text: string\n accent?: string\n gender?: string\n}\nexport type ActiveStudentsResponse = {\n date: string\n active_students: number\n}\nexport type GeneralStatsResponse = {\n number_of_students: number\n number_of_recordings: number\n total_duration: number\n avg_recordings_per_student: number\n avg_recording_length: number\n}\nexport type AiAnalysisResponse = {\n cohort_year: number\n cohort_semester: number\n recording_date: string\n teacher_username: string\n student_username: string\n original_sentence_transcript: string | null\n ai_comment: string\n category_of_error: string\n}\nexport type AiAnalysisListResponse = {\n data: AiAnalysisResponse[]\n total: number\n page: number\n page_size: number\n}\nexport type PerformanceDataPoint = {\n date: string\n score: number\n}\nexport type StudentPerformanceResponse = {\n ideation: PerformanceDataPoint[] | null\n development: PerformanceDataPoint[] | null\n grammar: PerformanceDataPoint[] | null\n vocabulary: PerformanceDataPoint[] | null\n fluency: PerformanceDataPoint[] | null\n}\nexport type RecordingLimitsResponse = {\n monthly_limit: number\n current_count: number\n remaining_count: number\n}\nexport type UserListResponse = {\n username: string\n user_id: number\n}\nexport type UserRoleFilter = 'teacher' | 'student' | 'all'\nexport const {\n useRevisionGetRevisionQuery,\n useLazyRevisionGetRevisionQuery,\n useRevisionDeleteRevisionMutation,\n useRevisionCreateTranscriptionMutation,\n useRevisionGetUserTranscriptionQuery,\n useLazyRevisionGetUserTranscriptionQuery,\n useRevisionUploadChunkedAudioMutation,\n useRevisionStopRecordingMutation,\n useRevisionCancelRecordingMutation,\n useRevisionCreateChunkRecordingSettingsMutation,\n useRevisionListRecordingsQuery,\n useLazyRevisionListRecordingsQuery,\n useRevisionUpdateRecordingMutation,\n useRevisionGetRecordingQuery,\n useLazyRevisionGetRecordingQuery,\n useRevisionDeleteRecordingMutation,\n useRevisionCreateFeedbackRequestsMutation,\n useRevisionListFeedbackRequestsQuery,\n useLazyRevisionListFeedbackRequestsQuery,\n useRevisionCreateTeacherFeedbackMutation,\n useRevisionGetFeedbacksQuery,\n useLazyRevisionGetFeedbacksQuery,\n useRevisionDeleteFeedbackMutation,\n useRevisionCreateAudioTeacherFeedbackMutation,\n useRevisionAddUserPreferenceOnFeedbackMutation,\n useRevisionGetUserPreferenceOnFeedbackQuery,\n useLazyRevisionGetUserPreferenceOnFeedbackQuery,\n useRevisionTranscriptionWebhookMutation,\n useRevisionCreateRecordingChunkMutation,\n useRevisionGetDefaultTeacherQuery,\n useLazyRevisionGetDefaultTeacherQuery,\n useRevisionGetQuestionsQuery,\n useLazyRevisionGetQuestionsQuery,\n useRevisionGetSummaryQuery,\n useLazyRevisionGetSummaryQuery,\n useRevisionGetTtsUrlMutation,\n useRevisionGetActiveStudentsQuery,\n useLazyRevisionGetActiveStudentsQuery,\n useRevisionGetGeneralStatsQuery,\n useLazyRevisionGetGeneralStatsQuery,\n useRevisionGetAiAnalysisQuery,\n useLazyRevisionGetAiAnalysisQuery,\n useRevisionGetStudentPerformanceQuery,\n useLazyRevisionGetStudentPerformanceQuery,\n useRevisionGetRecordingLimitsQuery,\n useLazyRevisionGetRecordingLimitsQuery,\n useRevisionProcessRecordingMutation,\n useRevisionGetUsersQuery,\n useLazyRevisionGetUsersQuery,\n} = injectedRtkApi\n","import { setUser } from '@features/auth/auth-actions'\nimport { api as modulesApi } from './auto-generated/modules'\nimport { api as authApi } from './auto-generated/auth'\nimport { api as revisionApi } from './auto-generated/revision'\nimport { current } from '@reduxjs/toolkit'\n\nmodulesApi.enhanceEndpoints({\n endpoints: {\n modulesSubmitModuleResult: {\n async onQueryStarted(args, { dispatch, queryFulfilled, getState }) {\n let patchResult\n switch (args.moduleResult.id) {\n case 'TeacherStudentQuestionnaire':\n patchResult = dispatch(\n authApi.util.updateQueryData('authWhoami', undefined, (draftUser) => {\n draftUser.status = args.moduleResult.data.status\n dispatch(setUser(current(draftUser)))\n }),\n )\n break\n case 'UserAddressModule':\n patchResult = dispatch(\n authApi.util.updateQueryData('authWhoami', undefined, (draftUser) => {\n draftUser.profile = args.moduleResult.data\n dispatch(setUser(current(draftUser)))\n }),\n )\n break\n case 'OnboardingTourModule':\n patchResult = dispatch(\n authApi.util.updateQueryData('authWhoami', {}, (draftUser) => {\n draftUser.completed_onboarding = true\n dispatch(setUser(current(draftUser)))\n }),\n )\n break\n case 'LanguageQuestionnaire':\n patchResult = dispatch(\n authApi.util.updateQueryData('authWhoami', undefined, (draftUser) => {\n draftUser.learning = args.moduleResult.data.learning\n draftUser.speaking = args.moduleResult.data.speaking\n dispatch(setUser(current(draftUser)))\n }),\n )\n break\n case 'TeacherBioModule':\n patchResult = dispatch(\n authApi.util.updateQueryData('authWhoami', undefined, (draftUser) => {\n draftUser.profile.bio = args.moduleResult.data?.bio\n draftUser.profile.experience = args.moduleResult.data?.experience\n draftUser.profile.tags = args.moduleResult.data?.tags\n draftUser.profile.teaching_style = args.moduleResult.data?.teaching_style\n dispatch(setUser(current(draftUser)))\n }),\n )\n break\n case 'VideoLinkQuestionnaire':\n patchResult = dispatch(\n authApi.util.updateQueryData('authWhoami', undefined, (draftUser) => {\n draftUser.profile.video_link = args.moduleResult.data?.video_link\n dispatch(setUser(current(draftUser)))\n }),\n )\n break\n case 'PreferredAccentModule':\n patchResult = dispatch(\n modulesApi.util.updateQueryData(\n 'modulesGetUserModules',\n undefined,\n (draftModules) => {\n draftModules.submitted.push('PreferredAccentModule')\n },\n ),\n )\n break\n case 'RecordingModule':\n patchResult = dispatch(\n revisionApi.util.updateQueryData(\n 'revisionListRecordings',\n undefined,\n (draftRecordings) => {\n draftRecordings.unshift({\n audio_url: args.moduleResult.data.recording,\n id: moduleResults.id,\n })\n },\n ),\n )\n default:\n break\n }\n try {\n await queryFulfilled\n } catch {\n if (patchResult) {\n patchResult.undo()\n }\n }\n },\n },\n },\n})\n\nexport { modulesApi }\n","import { baseApi as api } from '../api'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n musicboxGetMusic: build.query({\n query: () => ({ url: `/api/v1/extensions/musicbox/music` }),\n }),\n musicboxPlayMusic: build.mutation({\n query: (queryArg) => ({\n url: `/api/v1/extensions/musicbox/play`,\n method: 'POST',\n body: queryArg.playMusicRequest,\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type MusicboxGetMusicApiResponse = /** status 200 Successful Response */ MusicBoxDbModel[]\nexport type MusicboxGetMusicApiArg = void\nexport type MusicboxPlayMusicApiResponse = /** status 200 Successful Response */ any\nexport type MusicboxPlayMusicApiArg = {\n playMusicRequest: PlayMusicRequest\n}\nexport type MusicBoxDbModel = {\n id: number\n name?: string | null\n description?: string | null\n thumbnail?: string | null\n link: string\n link_type: string\n is_public?: boolean\n creator_id?: number | null\n created_at: string\n updated_at: string\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type PlayMusicRequest = {\n song_id: number\n}\nexport const {\n useMusicboxGetMusicQuery,\n useLazyMusicboxGetMusicQuery,\n useMusicboxPlayMusicMutation,\n} = injectedRtkApi\n","import { api as musicboxApi } from './auto-generated/musicbox'\n\nmusicboxApi.enhanceEndpoints({\n endpoints: {},\n})\n\nexport { musicboxApi }\n","import { baseApi as api } from '../api'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n neopaymentSubscribe: build.mutation({\n query: (queryArg) => ({\n url: `/api/v1/extensions/neopayment/subscribe`,\n method: 'POST',\n body: queryArg.subscriptionRequest,\n }),\n }),\n neopaymentUpgradePlan: build.mutation<\n NeopaymentUpgradePlanApiResponse,\n NeopaymentUpgradePlanApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/neopayment/upgrade`,\n method: 'POST',\n body: queryArg.upgradeRequest,\n }),\n }),\n neopaymentRetrieveSubscription: build.query<\n NeopaymentRetrieveSubscriptionApiResponse,\n NeopaymentRetrieveSubscriptionApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/neopayment/subscription/${queryArg.subscriptionId}`,\n }),\n }),\n neopaymentStripeWebhook: build.mutation<\n NeopaymentStripeWebhookApiResponse,\n NeopaymentStripeWebhookApiArg\n >({\n query: () => ({ url: `/api/v1/extensions/neopayment/webhook`, method: 'POST' }),\n }),\n neopaymentListUserSubscriptions: build.query<\n NeopaymentListUserSubscriptionsApiResponse,\n NeopaymentListUserSubscriptionsApiArg\n >({\n query: () => ({ url: `/api/v1/extensions/neopayment/user/subscriptions` }),\n }),\n neopaymentGetBillingPortal: build.query<\n NeopaymentGetBillingPortalApiResponse,\n NeopaymentGetBillingPortalApiArg\n >({\n query: () => ({ url: `/api/v1/extensions/neopayment/billing-portal` }),\n }),\n neopaymentGetAttendanceLimits: build.query<\n NeopaymentGetAttendanceLimitsApiResponse,\n NeopaymentGetAttendanceLimitsApiArg\n >({\n query: () => ({ url: `/api/v1/extensions/neopayment/attendance-limits` }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type NeopaymentSubscribeApiResponse = /** status 200 Successful Response */ any\nexport type NeopaymentSubscribeApiArg = {\n subscriptionRequest: SubscriptionRequest\n}\nexport type NeopaymentUpgradePlanApiResponse = /** status 200 Successful Response */ UpgradeResponse\nexport type NeopaymentUpgradePlanApiArg = {\n upgradeRequest: UpgradeRequest\n}\nexport type NeopaymentRetrieveSubscriptionApiResponse =\n /** status 200 Successful Response */ SubscriptionResponse\nexport type NeopaymentRetrieveSubscriptionApiArg = {\n subscriptionId: string\n}\nexport type NeopaymentStripeWebhookApiResponse = /** status 200 Successful Response */ any\nexport type NeopaymentStripeWebhookApiArg = void\nexport type NeopaymentListUserSubscriptionsApiResponse =\n /** status 200 Successful Response */ UserSubscriptionsResponse\nexport type NeopaymentListUserSubscriptionsApiArg = void\nexport type NeopaymentGetBillingPortalApiResponse =\n /** status 200 Successful Response */ BillingPortalResponse\nexport type NeopaymentGetBillingPortalApiArg = void\nexport type NeopaymentGetAttendanceLimitsApiResponse =\n /** status 200 Successful Response */ AttendanceLimitsResponse\nexport type NeopaymentGetAttendanceLimitsApiArg = void\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type SubscriptionRequest = {\n /** Subscription plan */\n plan: string\n /** Subscription period */\n period?: string\n}\nexport type UpgradeResponse = {\n status: string\n checkout_url?: string | null\n}\nexport type UpgradeRequest = {\n /** New subscription plan */\n new_plan: string\n}\nexport type SubscriptionResponse = {\n id: string\n status: string\n plan: string\n start_date?: string | null\n end_date?: string | null\n cancel_at_period_end?: boolean\n}\nexport type UserSubscriptionsResponse = {\n subscriptions: SubscriptionResponse[]\n}\nexport type BillingPortalResponse = {\n portal_url: string\n}\nexport type AttendanceLimitsResponse = {\n weekly_limit: number\n current_count: number\n remaining_count: number\n}\nexport const {\n useNeopaymentSubscribeMutation,\n useNeopaymentUpgradePlanMutation,\n useNeopaymentRetrieveSubscriptionQuery,\n useLazyNeopaymentRetrieveSubscriptionQuery,\n useNeopaymentStripeWebhookMutation,\n useNeopaymentListUserSubscriptionsQuery,\n useLazyNeopaymentListUserSubscriptionsQuery,\n useNeopaymentGetBillingPortalQuery,\n useLazyNeopaymentGetBillingPortalQuery,\n useNeopaymentGetAttendanceLimitsQuery,\n useLazyNeopaymentGetAttendanceLimitsQuery,\n} = injectedRtkApi\n","import { api as neopaymentApi } from './auto-generated/neopayment'\n\nneopaymentApi.enhanceEndpoints({\n endpoints: {},\n})\n\nexport { neopaymentApi }\n","import { baseApi as api } from '../api'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n notesCreateStickyNote: build.mutation<\n NotesCreateStickyNoteApiResponse,\n NotesCreateStickyNoteApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/sticky_notes/note`,\n method: 'POST',\n body: queryArg.stickyNoteCreateRequest,\n }),\n }),\n notesGetStickyNotes: build.query({\n query: (queryArg) => ({\n url: `/api/v1/extensions/sticky_notes/note`,\n params: {\n query: queryArg.query,\n event_id: queryArg.eventId,\n page: queryArg.page,\n limit: queryArg.limit,\n },\n }),\n }),\n notesGetStickyNoteById: build.query<\n NotesGetStickyNoteByIdApiResponse,\n NotesGetStickyNoteByIdApiArg\n >({\n query: (queryArg) => ({ url: `/api/v1/extensions/sticky_notes/note/${queryArg.noteId}` }),\n }),\n notesDeleteStickyNote: build.mutation<\n NotesDeleteStickyNoteApiResponse,\n NotesDeleteStickyNoteApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/sticky_notes/note/${queryArg.noteId}`,\n method: 'DELETE',\n }),\n }),\n notesUpdateStickyNote: build.mutation<\n NotesUpdateStickyNoteApiResponse,\n NotesUpdateStickyNoteApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/sticky_notes/note/${queryArg.noteId}`,\n method: 'PUT',\n body: queryArg.stickyNoteUpdateRequest,\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type NotesCreateStickyNoteApiResponse =\n /** status 201 Successful Response */ StickyNoteCreateResponse\nexport type NotesCreateStickyNoteApiArg = {\n stickyNoteCreateRequest: StickyNoteCreateRequest\n}\nexport type NotesGetStickyNotesApiResponse =\n /** status 200 Successful Response */ StickyNoteGetNotesResponse[]\nexport type NotesGetStickyNotesApiArg = {\n query?: string | null\n eventId?: string | null\n page?: number\n limit?: number\n}\nexport type NotesGetStickyNoteByIdApiResponse =\n /** status 200 Successful Response */ StickyNoteGetNotesResponse\nexport type NotesGetStickyNoteByIdApiArg = {\n noteId: number\n}\nexport type NotesDeleteStickyNoteApiResponse = /** status 204 Successful Response */ void\nexport type NotesDeleteStickyNoteApiArg = {\n noteId: number\n}\nexport type NotesUpdateStickyNoteApiResponse = /** status 201 Successful Response */ any\nexport type NotesUpdateStickyNoteApiArg = {\n noteId: number\n stickyNoteUpdateRequest: StickyNoteUpdateRequest\n}\nexport type StickyNoteCreateResponse = {\n id: number\n note: string\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type StickyNoteCreateRequest = {\n note: string\n color?: string\n event_id?: string | null\n}\nexport type StickyNoteGetNotesResponse = {\n id: number\n note: string\n color: string\n}\nexport type StickyNoteUpdateRequest = {\n note?: string | null\n color?: string | null\n}\nexport const {\n useNotesCreateStickyNoteMutation,\n useNotesGetStickyNotesQuery,\n useLazyNotesGetStickyNotesQuery,\n useNotesGetStickyNoteByIdQuery,\n useLazyNotesGetStickyNoteByIdQuery,\n useNotesDeleteStickyNoteMutation,\n useNotesUpdateStickyNoteMutation,\n} = injectedRtkApi\n","import { api as notesApi } from './auto-generated/notes'\n\nnotesApi.enhanceEndpoints({\n endpoints: {\n notesCreateStickyNote: {\n async onQueryStarted(args, { dispatch, queryFulfilled }) {\n let patchResult\n try {\n const { data: newNote } = await queryFulfilled\n patchResult = dispatch(\n notesApi.util.updateQueryData('notesGetStickyNotes', {}, (draftNotes) => {\n draftNotes.unshift({\n id: newNote?.id,\n ...args.stickyNoteCreateRequest,\n })\n }),\n )\n } catch {\n patchResult?.undo()\n }\n },\n },\n notesUpdateStickyNote: {\n async onQueryStarted(args, { dispatch, queryFulfilled }) {\n let patchResult\n try {\n const { data: updatedNote } = await queryFulfilled\n patchResult = dispatch(\n notesApi.util.updateQueryData('notesGetStickyNotes', {}, (draftNotes) => {\n return draftNotes.map((item) => {\n if (item?.id === args?.noteId) {\n return updatedNote\n } else {\n return item\n }\n })\n }),\n )\n } catch {\n patchResult?.undo()\n }\n },\n },\n notesDeleteStickyNote: {\n async onQueryStarted(args, { dispatch, queryFulfilled }) {\n let patchResult\n try {\n await queryFulfilled\n patchResult = dispatch(\n notesApi.util.updateQueryData('notesGetStickyNotes', {}, (draftNotes) => {\n return draftNotes?.filter((item) => item?.id !== args?.noteId)\n }),\n )\n } catch {\n patchResult?.undo()\n }\n },\n },\n },\n})\n\nexport { notesApi }\n","import { baseApi as api } from '../api'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n notificationGetUnreadNotificationsNumber: build.query<\n NotificationGetUnreadNotificationsNumberApiResponse,\n NotificationGetUnreadNotificationsNumberApiArg\n >({\n query: () => ({ url: `/api/v1/sdk/notification/notifications/unread/number` }),\n }),\n notificationGetNotifications: build.query<\n NotificationGetNotificationsApiResponse,\n NotificationGetNotificationsApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/sdk/notification/notifications`,\n params: {\n limit: queryArg.limit,\n offset: queryArg.offset,\n order_by: queryArg.orderBy,\n order_type: queryArg.orderType,\n },\n }),\n }),\n notificationGetNotification: build.query<\n NotificationGetNotificationApiResponse,\n NotificationGetNotificationApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/sdk/notification/notifications/${queryArg.notificationId}`,\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type NotificationGetUnreadNotificationsNumberApiResponse =\n /** status 200 Successful Response */ GetUnreadNotificationsNumberResponse\nexport type NotificationGetUnreadNotificationsNumberApiArg = void\nexport type NotificationGetNotificationsApiResponse =\n /** status 200 Successful Response */ NotificationDbModel[]\nexport type NotificationGetNotificationsApiArg = {\n limit?: number | null\n offset?: number | null\n orderBy?: string | null\n orderType?: string | null\n}\nexport type NotificationGetNotificationApiResponse =\n /** status 200 Successful Response */ NotificationDbModel\nexport type NotificationGetNotificationApiArg = {\n notificationId: number\n}\nexport type GetUnreadNotificationsNumberResponse = {\n number: number\n}\nexport type NotificationDbModel = {\n id: number\n user_id?: number | null\n message_title?: string | null\n message_body_link?: string | null\n message_body_text?: string | null\n is_read_at?: string | null\n created_at?: string\n updated_at?: string\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport const {\n useNotificationGetUnreadNotificationsNumberQuery,\n useLazyNotificationGetUnreadNotificationsNumberQuery,\n useNotificationGetNotificationsQuery,\n useLazyNotificationGetNotificationsQuery,\n useNotificationGetNotificationQuery,\n useLazyNotificationGetNotificationQuery,\n} = injectedRtkApi\n","import { api as notificationApi } from './auto-generated/notification'\n\nnotificationApi.enhanceEndpoints({\n endpoints: {},\n})\n\nexport { notificationApi }\n","import { baseApi as api } from '../api'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n paymentGetSubscriptionPrices: build.query<\n PaymentGetSubscriptionPricesApiResponse,\n PaymentGetSubscriptionPricesApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/payment/get_subscription_plans`,\n params: { currency: queryArg.currency },\n }),\n }),\n paymentCreateCheckout: build.mutation<\n PaymentCreateCheckoutApiResponse,\n PaymentCreateCheckoutApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/payment/create_checkout`,\n method: 'POST',\n body: queryArg.createPaymentCheckoutRequest,\n }),\n }),\n paymentListUserPayment: build.query<\n PaymentListUserPaymentApiResponse,\n PaymentListUserPaymentApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/payment/list_user_payments`,\n params: {\n start_time: queryArg.startTime,\n end_time: queryArg.endTime,\n status: queryArg.status,\n },\n }),\n }),\n paymentGetUserSubscription: build.query<\n PaymentGetUserSubscriptionApiResponse,\n PaymentGetUserSubscriptionApiArg\n >({\n query: () => ({ url: `/api/v1/extensions/payment/get_user_subscription` }),\n }),\n paymentCreatePortal: build.mutation({\n query: () => ({ url: `/api/v1/extensions/payment/create_portal`, method: 'POST' }),\n }),\n paymentStripeWebhooks: build.mutation<\n PaymentStripeWebhooksApiResponse,\n PaymentStripeWebhooksApiArg\n >({\n query: () => ({ url: `/api/v1/extensions/payment/stripe_webhooks`, method: 'POST' }),\n }),\n paymentPaymeeWebhooks: build.mutation<\n PaymentPaymeeWebhooksApiResponse,\n PaymentPaymeeWebhooksApiArg\n >({\n query: () => ({ url: `/api/v1/extensions/payment/paymee_webhooks`, method: 'POST' }),\n }),\n paymentGetCredits: build.query({\n query: () => ({ url: `/api/v1/extensions/payment/credits` }),\n }),\n paymentReportUsage: build.mutation({\n query: (queryArg) => ({\n url: `/api/v1/extensions/payment/report_usage`,\n method: 'POST',\n body: queryArg.reportUsageRequestObject,\n }),\n }),\n paymentAddStudentSeats: build.mutation<\n PaymentAddStudentSeatsApiResponse,\n PaymentAddStudentSeatsApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/payment/add_student_seats`,\n method: 'POST',\n body: queryArg.addStudentSeatsRequest,\n }),\n }),\n paymentGetStripeAccount: build.query<\n PaymentGetStripeAccountApiResponse,\n PaymentGetStripeAccountApiArg\n >({\n query: () => ({ url: `/api/v1/extensions/payment/stripe_account` }),\n }),\n paymentCreateStripeAccount: build.mutation<\n PaymentCreateStripeAccountApiResponse,\n PaymentCreateStripeAccountApiArg\n >({\n query: () => ({ url: `/api/v1/extensions/payment/create_stripe_account`, method: 'POST' }),\n }),\n paymentGenerateStripeOnboardingForm: build.mutation<\n PaymentGenerateStripeOnboardingFormApiResponse,\n PaymentGenerateStripeOnboardingFormApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/payment/generate_onboarding_link`,\n method: 'POST',\n body: queryArg.generateOnboardingLinkRequest,\n }),\n }),\n paymentGenerateStripeLoginLink: build.mutation<\n PaymentGenerateStripeLoginLinkApiResponse,\n PaymentGenerateStripeLoginLinkApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/payment/generate_stripe_login_link`,\n method: 'POST',\n body: queryArg.generateOnboardingLinkRequest,\n }),\n }),\n paymentCreateTeacherCheckout: build.mutation<\n PaymentCreateTeacherCheckoutApiResponse,\n PaymentCreateTeacherCheckoutApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/payment/create_teacher_checkout`,\n method: 'POST',\n body: queryArg.createTeacherCheckoutRequest,\n }),\n }),\n paymentGetTeacherSubscriptionPlans: build.query<\n PaymentGetTeacherSubscriptionPlansApiResponse,\n PaymentGetTeacherSubscriptionPlansApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/payment/teacher_subscription_plans`,\n params: { url: queryArg.url },\n }),\n }),\n paymentConnectStripeWebhooks: build.mutation<\n PaymentConnectStripeWebhooksApiResponse,\n PaymentConnectStripeWebhooksApiArg\n >({\n query: () => ({ url: `/api/v1/extensions/payment/connect_stripe_webhooks`, method: 'POST' }),\n }),\n paymentCreateTeacherAiCheckout: build.mutation<\n PaymentCreateTeacherAiCheckoutApiResponse,\n PaymentCreateTeacherAiCheckoutApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/payment/create_teacher_ai_checkout`,\n method: 'POST',\n body: queryArg.createTeacherAiCheckoutRequest,\n }),\n }),\n paymentGetStripeAccountByUserId: build.query<\n PaymentGetStripeAccountByUserIdApiResponse,\n PaymentGetStripeAccountByUserIdApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/payment/get_stripe_account/${queryArg.userId}`,\n }),\n }),\n paymentCancelUserSubscription: build.mutation<\n PaymentCancelUserSubscriptionApiResponse,\n PaymentCancelUserSubscriptionApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/payment/cancel_user_subscription`,\n method: 'POST',\n body: queryArg.cancelUserSubscriptionRequest,\n }),\n }),\n neopaymentSubscribe: build.mutation({\n query: (queryArg) => ({\n url: `/api/v1/extensions/neopayment/subscribe`,\n method: 'POST',\n body: queryArg.subscriptionRequest,\n }),\n }),\n neopaymentUpgradePlan: build.mutation<\n NeopaymentUpgradePlanApiResponse,\n NeopaymentUpgradePlanApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/neopayment/upgrade`,\n method: 'POST',\n body: queryArg.upgradeRequest,\n }),\n }),\n neopaymentRetrieveSubscription: build.query<\n NeopaymentRetrieveSubscriptionApiResponse,\n NeopaymentRetrieveSubscriptionApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/neopayment/subscription/${queryArg.subscriptionId}`,\n }),\n }),\n neopaymentStripeWebhook: build.mutation<\n NeopaymentStripeWebhookApiResponse,\n NeopaymentStripeWebhookApiArg\n >({\n query: () => ({ url: `/api/v1/extensions/neopayment/webhook`, method: 'POST' }),\n }),\n neopaymentListUserSubscriptions: build.query<\n NeopaymentListUserSubscriptionsApiResponse,\n NeopaymentListUserSubscriptionsApiArg\n >({\n query: () => ({ url: `/api/v1/extensions/neopayment/user/subscriptions` }),\n }),\n neopaymentGetBillingPortal: build.query<\n NeopaymentGetBillingPortalApiResponse,\n NeopaymentGetBillingPortalApiArg\n >({\n query: () => ({ url: `/api/v1/extensions/neopayment/billing-portal` }),\n }),\n neopaymentGetAttendanceLimits: build.query<\n NeopaymentGetAttendanceLimitsApiResponse,\n NeopaymentGetAttendanceLimitsApiArg\n >({\n query: () => ({ url: `/api/v1/extensions/neopayment/attendance-limits` }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type PaymentGetSubscriptionPricesApiResponse =\n /** status 200 Successful Response */ SubscriptionPlanListResponse[]\nexport type PaymentGetSubscriptionPricesApiArg = {\n currency?: PaymentCurrencyEnum\n}\nexport type PaymentCreateCheckoutApiResponse =\n /** status 200 Successful Response */ CreatePaymentCheckoutResponse\nexport type PaymentCreateCheckoutApiArg = {\n createPaymentCheckoutRequest: CreatePaymentCheckoutRequest\n}\nexport type PaymentListUserPaymentApiResponse =\n /** status 200 Successful Response */ UserPaymentResponse[]\nexport type PaymentListUserPaymentApiArg = {\n startTime?: string | null\n endTime?: string | null\n status?: UserPaymentStatus | null\n}\nexport type PaymentGetUserSubscriptionApiResponse = /** status 200 Successful Response */ any\nexport type PaymentGetUserSubscriptionApiArg = void\nexport type PaymentCreatePortalApiResponse = /** status 200 Successful Response */ any\nexport type PaymentCreatePortalApiArg = void\nexport type PaymentStripeWebhooksApiResponse = /** status 200 Successful Response */ any\nexport type PaymentStripeWebhooksApiArg = void\nexport type PaymentPaymeeWebhooksApiResponse = /** status 200 Successful Response */ any\nexport type PaymentPaymeeWebhooksApiArg = void\nexport type PaymentGetCreditsApiResponse = /** status 200 Successful Response */ GetCreditsResponse\nexport type PaymentGetCreditsApiArg = void\nexport type PaymentReportUsageApiResponse = /** status 200 Successful Response */ any\nexport type PaymentReportUsageApiArg = {\n reportUsageRequestObject: ReportUsageRequestObject\n}\nexport type PaymentAddStudentSeatsApiResponse = /** status 200 Successful Response */ any\nexport type PaymentAddStudentSeatsApiArg = {\n addStudentSeatsRequest: AddStudentSeatsRequest\n}\nexport type PaymentGetStripeAccountApiResponse =\n /** status 200 Successful Response */ GetStripeAccountResponse\nexport type PaymentGetStripeAccountApiArg = void\nexport type PaymentCreateStripeAccountApiResponse = /** status 201 Successful Response */ any\nexport type PaymentCreateStripeAccountApiArg = void\nexport type PaymentGenerateStripeOnboardingFormApiResponse =\n /** status 200 Successful Response */ any\nexport type PaymentGenerateStripeOnboardingFormApiArg = {\n generateOnboardingLinkRequest: GenerateOnboardingLinkRequest\n}\nexport type PaymentGenerateStripeLoginLinkApiResponse = /** status 200 Successful Response */ any\nexport type PaymentGenerateStripeLoginLinkApiArg = {\n generateOnboardingLinkRequest: GenerateOnboardingLinkRequest\n}\nexport type PaymentCreateTeacherCheckoutApiResponse = /** status 200 Successful Response */ any\nexport type PaymentCreateTeacherCheckoutApiArg = {\n createTeacherCheckoutRequest: CreateTeacherCheckoutRequest\n}\nexport type PaymentGetTeacherSubscriptionPlansApiResponse =\n /** status 200 Successful Response */ any\nexport type PaymentGetTeacherSubscriptionPlansApiArg = {\n url: string\n}\nexport type PaymentConnectStripeWebhooksApiResponse = /** status 200 Successful Response */ any\nexport type PaymentConnectStripeWebhooksApiArg = void\nexport type PaymentCreateTeacherAiCheckoutApiResponse = /** status 200 Successful Response */ any\nexport type PaymentCreateTeacherAiCheckoutApiArg = {\n createTeacherAiCheckoutRequest: CreateTeacherAiCheckoutRequest\n}\nexport type PaymentGetStripeAccountByUserIdApiResponse =\n /** status 200 Successful Response */ GetStripeAccountResponse\nexport type PaymentGetStripeAccountByUserIdApiArg = {\n userId: number\n}\nexport type PaymentCancelUserSubscriptionApiResponse = /** status 200 Successful Response */ any\nexport type PaymentCancelUserSubscriptionApiArg = {\n cancelUserSubscriptionRequest: CancelUserSubscriptionRequest\n}\nexport type NeopaymentSubscribeApiResponse = /** status 200 Successful Response */ any\nexport type NeopaymentSubscribeApiArg = {\n subscriptionRequest: SubscriptionRequest\n}\nexport type NeopaymentUpgradePlanApiResponse = /** status 200 Successful Response */ UpgradeResponse\nexport type NeopaymentUpgradePlanApiArg = {\n upgradeRequest: UpgradeRequest\n}\nexport type NeopaymentRetrieveSubscriptionApiResponse =\n /** status 200 Successful Response */ SubscriptionResponse\nexport type NeopaymentRetrieveSubscriptionApiArg = {\n subscriptionId: string\n}\nexport type NeopaymentStripeWebhookApiResponse = /** status 200 Successful Response */ any\nexport type NeopaymentStripeWebhookApiArg = void\nexport type NeopaymentListUserSubscriptionsApiResponse =\n /** status 200 Successful Response */ UserSubscriptionsResponse\nexport type NeopaymentListUserSubscriptionsApiArg = void\nexport type NeopaymentGetBillingPortalApiResponse =\n /** status 200 Successful Response */ BillingPortalResponse\nexport type NeopaymentGetBillingPortalApiArg = void\nexport type NeopaymentGetAttendanceLimitsApiResponse =\n /** status 200 Successful Response */ AttendanceLimitsResponse\nexport type NeopaymentGetAttendanceLimitsApiArg = void\nexport type SubscriptionPlanListResponse = {\n id: number\n name: string\n price: string\n credits: number\n third_party_subscription_plan_id: string\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type PaymentCurrencyEnum = 'USD' | 'EUR' | 'TND'\nexport type CreatePaymentCheckoutResponse = {\n url: string\n}\nexport type PaymentMethodEnum = 'stripe' | 'paymee'\nexport type CreatePaymentCheckoutRequest = {\n subscription_plan_id: string\n payment_method: PaymentMethodEnum\n user_promotion_id?: number | null\n cancel_url?: string | null\n return_url?: string | null\n}\nexport type UserPaymentResponse = {\n id: number\n created_at: string\n price: number\n currency: string\n start_time: string\n end_time: string\n}\nexport type UserPaymentStatus = 'pending' | 'paid' | 'unpaid'\nexport type GetCreditsResponse = {\n credits: number\n}\nexport type ReportUsageRequestObject = {\n item_id: string\n quantity: number\n}\nexport type AddStudentSeatsRequest = {\n quantity: number\n}\nexport type GetStripeAccountResponse = {\n id?: number | null\n account_id?: string | null\n user_id?: number | null\n charges_enabled?: boolean | null\n}\nexport type GenerateOnboardingLinkRequest = {\n account_id: string\n}\nexport type CreateTeacherCheckoutRequest = {\n subscription_id: string\n cancel_url: string\n free_trial?: boolean | null\n}\nexport type CreateTeacherAiCheckoutRequest = {\n subscription_id: string\n cancel_url: string\n}\nexport type CancelUserSubscriptionRequest = {\n subscription_id: string\n}\nexport type SubscriptionRequest = {\n /** Subscription plan */\n plan: string\n /** Subscription period */\n period?: string\n}\nexport type UpgradeResponse = {\n status: string\n checkout_url?: string | null\n}\nexport type UpgradeRequest = {\n /** New subscription plan */\n new_plan: string\n}\nexport type SubscriptionResponse = {\n id: string\n status: string\n plan: string\n start_date?: string | null\n end_date?: string | null\n cancel_at_period_end?: boolean\n}\nexport type UserSubscriptionsResponse = {\n subscriptions: SubscriptionResponse[]\n}\nexport type BillingPortalResponse = {\n portal_url: string\n}\nexport type AttendanceLimitsResponse = {\n weekly_limit: number\n current_count: number\n remaining_count: number\n}\nexport const {\n usePaymentGetSubscriptionPricesQuery,\n useLazyPaymentGetSubscriptionPricesQuery,\n usePaymentCreateCheckoutMutation,\n usePaymentListUserPaymentQuery,\n useLazyPaymentListUserPaymentQuery,\n usePaymentGetUserSubscriptionQuery,\n useLazyPaymentGetUserSubscriptionQuery,\n usePaymentCreatePortalMutation,\n usePaymentStripeWebhooksMutation,\n usePaymentPaymeeWebhooksMutation,\n usePaymentGetCreditsQuery,\n useLazyPaymentGetCreditsQuery,\n usePaymentReportUsageMutation,\n usePaymentAddStudentSeatsMutation,\n usePaymentGetStripeAccountQuery,\n useLazyPaymentGetStripeAccountQuery,\n usePaymentCreateStripeAccountMutation,\n usePaymentGenerateStripeOnboardingFormMutation,\n usePaymentGenerateStripeLoginLinkMutation,\n usePaymentCreateTeacherCheckoutMutation,\n usePaymentGetTeacherSubscriptionPlansQuery,\n useLazyPaymentGetTeacherSubscriptionPlansQuery,\n usePaymentConnectStripeWebhooksMutation,\n usePaymentCreateTeacherAiCheckoutMutation,\n usePaymentGetStripeAccountByUserIdQuery,\n useLazyPaymentGetStripeAccountByUserIdQuery,\n usePaymentCancelUserSubscriptionMutation,\n useNeopaymentSubscribeMutation,\n useNeopaymentUpgradePlanMutation,\n useNeopaymentRetrieveSubscriptionQuery,\n useLazyNeopaymentRetrieveSubscriptionQuery,\n useNeopaymentStripeWebhookMutation,\n useNeopaymentListUserSubscriptionsQuery,\n useLazyNeopaymentListUserSubscriptionsQuery,\n useNeopaymentGetBillingPortalQuery,\n useLazyNeopaymentGetBillingPortalQuery,\n useNeopaymentGetAttendanceLimitsQuery,\n useLazyNeopaymentGetAttendanceLimitsQuery,\n} = injectedRtkApi\n","import { api as paymentApi } from './auto-generated/payment'\n\npaymentApi.enhanceEndpoints({\n endpoints: {\n paymentCreateStripeAccount: {\n async onQueryStarted(args, { dispatch, queryFulfilled }) {\n try {\n const response = await queryFulfilled\n dispatch(\n paymentApi.util.updateQueryData('paymentGetStripeAccount', args, (draftAccount) => {\n draftAccount = response.data\n }),\n )\n } catch {}\n },\n },\n paymentCancelUserSubscription: {\n async onQueryStarted(args, { dispatch, queryFulfilled }) {\n let patchResult\n try {\n const { data } = await queryFulfilled\n patchResult = dispatch(\n paymentApi.util.updateQueryData('paymentGetUserSubscription', args, (draft) => {\n Object.assign(draft, null)\n }),\n )\n } catch {\n patchResult?.undo()\n }\n },\n },\n },\n})\n\nexport { paymentApi }\n","import { baseApi as api } from '../api'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n pictionaryGetPictionaryGamesConfig: build.query<\n PictionaryGetPictionaryGamesConfigApiResponse,\n PictionaryGetPictionaryGamesConfigApiArg\n >({\n query: () => ({ url: `/api/v1/extensions/pictionary/config` }),\n }),\n pictionaryJoinGame: build.mutation({\n query: (queryArg) => ({\n url: `/api/v1/extensions/pictionary/game/${queryArg.eventId}/start`,\n method: 'POST',\n params: { exit_: queryArg.exit },\n }),\n }),\n pictionaryGetGame: build.query({\n query: (queryArg) => ({ url: `/api/v1/extensions/pictionary/game/${queryArg.eventId}` }),\n }),\n pictionaryMakeGuess: build.mutation({\n query: (queryArg) => ({\n url: `/api/v1/extensions/pictionary/game/${queryArg.eventId}/guess`,\n method: 'POST',\n body: queryArg.pictionaryGuess,\n }),\n }),\n pictionaryAddGameRoundGuess: build.mutation<\n PictionaryAddGameRoundGuessApiResponse,\n PictionaryAddGameRoundGuessApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/pictionary/game/${queryArg.eventId}/add_current_round_guess`,\n method: 'POST',\n body: queryArg.pictionaryGuess,\n }),\n }),\n pictionaryExitGame: build.mutation({\n query: (queryArg) => ({\n url: `/api/v1/extensions/pictionary/game/${queryArg.eventId}/exit`,\n method: 'POST',\n }),\n }),\n pictionaryNextRound: build.mutation({\n query: (queryArg) => ({\n url: `/api/v1/extensions/pictionary/game/${queryArg.eventId}/next`,\n method: 'POST',\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type PictionaryGetPictionaryGamesConfigApiResponse =\n /** status 200 Successful Response */ PictionaryGameConfig\nexport type PictionaryGetPictionaryGamesConfigApiArg = void\nexport type PictionaryJoinGameApiResponse = /** status 200 Successful Response */ any\nexport type PictionaryJoinGameApiArg = {\n eventId: string\n exit?: boolean\n}\nexport type PictionaryGetGameApiResponse = /** status 200 Successful Response */ PictionaryGame\nexport type PictionaryGetGameApiArg = {\n eventId: string\n}\nexport type PictionaryMakeGuessApiResponse = /** status 200 Successful Response */ any\nexport type PictionaryMakeGuessApiArg = {\n eventId: string\n pictionaryGuess: PictionaryGuess\n}\nexport type PictionaryAddGameRoundGuessApiResponse =\n /** status 200 Successful Response */ AddCurrentRoundGuessResponse\nexport type PictionaryAddGameRoundGuessApiArg = {\n eventId: string\n pictionaryGuess: PictionaryGuess\n}\nexport type PictionaryExitGameApiResponse = /** status 200 Successful Response */ any\nexport type PictionaryExitGameApiArg = {\n eventId: string\n}\nexport type PictionaryNextRoundApiResponse = /** status 200 Successful Response */ any\nexport type PictionaryNextRoundApiArg = {\n eventId: string\n}\nexport type PictionaryGameConfig = {\n time_to_guess: number\n number_of_words: number\n number_of_rounds: number\n number_of_guesses: number\n min_number_of_users: number\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type GameStatus = 'PENDING' | 'STARTED' | 'FINISHED' | 'CANCELED'\nexport type Pronouns = 0 | 1 | 2 | 3\nexport type TeacherProfileResponse = {\n bio?: string | null\n experience?: string | null\n tags?: string[] | null\n video_link?: string | null\n teaching_style?: string | null\n price_per_hour?: number | null\n partner?: boolean | null\n is_reviewer?: boolean | null\n}\nexport type LanguageExperience = 0 | 1 | 2 | 3 | 4\nexport type LanguageProficiency = {\n language: string\n proficiency: LanguageExperience\n}\nexport type UserStatus = 'STUDENT' | 'TEACHER'\nexport type Permission =\n | 'CREATE_EVENT'\n | 'CREATE_PENGGUIN_EVENT'\n | 'SEND_DIRECT_MESSAGE'\n | 'CREATE_CUSTOM_ROLE'\n | 'SEND_EMAIL_TO_USERS'\n | 'CREATE_GEOGUESSER_GAME'\n | 'JOIN_GEOGUESSER_GAME'\n | 'MAKE_GUESS_GEOGUESSER_GAME'\n | 'MAKE_RATING'\n | 'UPLOAD_FILE'\n | 'DELETE_ACCOUNT'\n | 'MAKE_ROLE'\n | 'ASSIGN_ROLE'\n | 'VIEW_ROLES'\n | 'EDIT_ROLE'\n | 'GENERATE_AGORA_TOKEN'\n | 'REFRESH_AGORA_TOKEN'\n | 'CREATE_AMBASSADOR'\n | 'DELETE_AMBASSADOR'\n | 'UPDATE_AMBASSADOR'\n | 'TRANSLATE'\n | 'CREATE_DISCORD_ROLE'\n | 'VIEW_DISCORD_ROLE'\n | 'CREATE_GEOGUESSER_PLACES'\n | 'HYPERBEAM_LIST_SESSIONS'\n | 'HYPERBEAM_DELETE_SESSIONS'\n | 'ADMIN_VIEW_USERS'\n | 'ADMIN_LANGUAGES'\n | 'ADMIN_AGORA_TOKENS_AUDIT'\n | 'ADMIN_ROLE'\n | 'ADMIN_DIRECT_MESSAGE'\n | 'ADMIN_AMBASSADORS'\n | 'ADMIN_DISCORD_ROLES'\n | 'ADMIN_DISCORD_AUDIT_EVENT'\n | 'ADMIN_DISCUSSION_LANGUAGE'\n | 'ADMIN_DISCUSSION_LANGUAGE_AUDIT_EVENTS'\n | 'ADMIN_USER_FLAGGING'\n | 'ADMIN_GEOGAME_ROUNDS'\n | 'ADMIN_GEOGAME_STATIC_COORDINATES'\n | 'ADMIN_GEOGAME_AUDIT_EVENTS'\n | 'ADMIN_EVENT_GAME_CHAT'\n | 'ADMIN_EVENT_CHAT'\n | 'ADMIN_EVENT_PARTICIPANTS'\n | 'ADMIN_PICTIONARY_AUDIT'\n | 'ADMIN_PICTIONARY_GAMES'\n | 'ADMIN_PICTIONARY_ROUNDS'\n | 'ADMIN_PICTIONARY_GUESS'\n | 'ADMIN_PICTIONARY_WORDS'\n | 'ADMIN_TRANSLATION_AUDIT'\n | 'ADMIN_REDIS_CONSOLE'\n | 'ADMIN_DEBUGGING_CONSOLE'\n | 'CREATE_TRANSCRIPT'\n | 'ADMIN_RECORDINGS'\n | 'HUDDLE_HOST'\nexport type RolesInDb = {\n id?: number | null\n name?: string | null\n permissions?: Permission[] | null\n}\nexport type PublicUserProfile = {\n id?: number | null\n username?: string | null\n image?: string | null\n full_name?: string | null\n country?: string | null\n pronouns?: Pronouns | null\n profile?: TeacherProfileResponse | null\n accent?: string | null\n voice_gender?: string | null\n learning?: LanguageProficiency[] | null\n speaking?: LanguageProficiency[] | null\n status?: UserStatus\n display_name?: string | null\n is_company?: boolean | null\n cefr_level?: string | null\n roles?: RolesInDb[] | null\n plan?: string | null\n}\nexport type PictionaryGame = {\n created_time: string\n status: GameStatus\n end_time?: string | null\n started_time?: string | null\n drawer?: PublicUserProfile | null\n current_round?: number | null\n current_word?: string | null\n round_remaining_time?: number | null\n scores: {\n [key: string]: number\n }\n list_words?: string[] | null\n chosen_word_length?: number | null\n}\nexport type PictionaryGuess = {\n guess: string\n round_number: number\n}\nexport type AddCurrentRoundGuessResponse = {\n current_word: string\n}\nexport const {\n usePictionaryGetPictionaryGamesConfigQuery,\n useLazyPictionaryGetPictionaryGamesConfigQuery,\n usePictionaryJoinGameMutation,\n usePictionaryGetGameQuery,\n useLazyPictionaryGetGameQuery,\n usePictionaryMakeGuessMutation,\n usePictionaryAddGameRoundGuessMutation,\n usePictionaryExitGameMutation,\n usePictionaryNextRoundMutation,\n} = injectedRtkApi\n","import { api as pictionaryApi } from './auto-generated/pictionary'\nimport { api as eventApi } from './auto-generated/event'\n\npictionaryApi.enhanceEndpoints({\n endpoints: {\n pictionaryJoinGame: {\n async onQueryStarted(args, { dispatch, queryFulfilled }) {\n dispatch(\n eventApi.util.updateQueryData('eventGetEventById', args, (draftEvent) => {\n draftEvent.event_type = 'PICTIONARY'\n }),\n )\n dispatch(\n eventApi.util.updateQueryData('eventGetCurrentEvent', undefined, (draftEvent) => {\n draftEvent.event_type = 'PICTIONARY'\n }),\n )\n try {\n await queryFulfilled\n } catch {}\n },\n },\n },\n})\n\nexport { pictionaryApi }\n","import { baseApi as api } from '../api'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n ratingRateUser: build.mutation({\n query: (queryArg) => ({\n url: `/api/v1/extensions/rating/rate`,\n method: 'POST',\n body: queryArg.ratingRequest,\n }),\n }),\n ratingDeleteRating: build.mutation({\n query: (queryArg) => ({\n url: `/api/v1/extensions/rating/rate/${queryArg.ratingId}`,\n method: 'DELETE',\n }),\n }),\n ratingChangeRatingForUser: build.mutation<\n RatingChangeRatingForUserApiResponse,\n RatingChangeRatingForUserApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/rating/rate/${queryArg.ratingId}`,\n method: 'PUT',\n body: queryArg.patchRatingRequest,\n }),\n }),\n ratingGetRatingId: build.query({\n query: (queryArg) => ({ url: `/api/v1/extensions/rating/rate/${queryArg.ratingId}` }),\n }),\n ratingGetRatingsForUser: build.query<\n RatingGetRatingsForUserApiResponse,\n RatingGetRatingsForUserApiArg\n >({\n query: (queryArg) => ({ url: `/api/v1/extensions/rating/rate/user/${queryArg.username}` }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type RatingRateUserApiResponse = /** status 201 Successful Response */ CreateRatingResponse\nexport type RatingRateUserApiArg = {\n ratingRequest: RatingRequest\n}\nexport type RatingDeleteRatingApiResponse = /** status 200 Successful Response */ any\nexport type RatingDeleteRatingApiArg = {\n ratingId: number\n}\nexport type RatingChangeRatingForUserApiResponse = /** status 200 Successful Response */ any\nexport type RatingChangeRatingForUserApiArg = {\n ratingId: number\n patchRatingRequest: PatchRatingRequest\n}\nexport type RatingGetRatingIdApiResponse = /** status 200 Successful Response */ UserRating\nexport type RatingGetRatingIdApiArg = {\n ratingId: number\n}\nexport type RatingGetRatingsForUserApiResponse = /** status 200 Successful Response */ UserRating[]\nexport type RatingGetRatingsForUserApiArg = {\n username: string\n}\nexport type CreateRatingResponse = {\n id: number\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type RatingRequest = {\n username: string\n rating: number\n comment?: string | null\n}\nexport type PatchRatingRequest = {\n comment: string\n rating: number\n}\nexport type Pronouns = 0 | 1 | 2 | 3\nexport type TeacherProfileResponse = {\n bio?: string | null\n experience?: string | null\n tags?: string[] | null\n video_link?: string | null\n teaching_style?: string | null\n price_per_hour?: number | null\n partner?: boolean | null\n is_reviewer?: boolean | null\n}\nexport type LanguageExperience = 0 | 1 | 2 | 3 | 4\nexport type LanguageProficiency = {\n language: string\n proficiency: LanguageExperience\n}\nexport type UserStatus = 'STUDENT' | 'TEACHER'\nexport type Permission =\n | 'CREATE_EVENT'\n | 'CREATE_PENGGUIN_EVENT'\n | 'SEND_DIRECT_MESSAGE'\n | 'CREATE_CUSTOM_ROLE'\n | 'SEND_EMAIL_TO_USERS'\n | 'CREATE_GEOGUESSER_GAME'\n | 'JOIN_GEOGUESSER_GAME'\n | 'MAKE_GUESS_GEOGUESSER_GAME'\n | 'MAKE_RATING'\n | 'UPLOAD_FILE'\n | 'DELETE_ACCOUNT'\n | 'MAKE_ROLE'\n | 'ASSIGN_ROLE'\n | 'VIEW_ROLES'\n | 'EDIT_ROLE'\n | 'GENERATE_AGORA_TOKEN'\n | 'REFRESH_AGORA_TOKEN'\n | 'CREATE_AMBASSADOR'\n | 'DELETE_AMBASSADOR'\n | 'UPDATE_AMBASSADOR'\n | 'TRANSLATE'\n | 'CREATE_DISCORD_ROLE'\n | 'VIEW_DISCORD_ROLE'\n | 'CREATE_GEOGUESSER_PLACES'\n | 'HYPERBEAM_LIST_SESSIONS'\n | 'HYPERBEAM_DELETE_SESSIONS'\n | 'ADMIN_VIEW_USERS'\n | 'ADMIN_LANGUAGES'\n | 'ADMIN_AGORA_TOKENS_AUDIT'\n | 'ADMIN_ROLE'\n | 'ADMIN_DIRECT_MESSAGE'\n | 'ADMIN_AMBASSADORS'\n | 'ADMIN_DISCORD_ROLES'\n | 'ADMIN_DISCORD_AUDIT_EVENT'\n | 'ADMIN_DISCUSSION_LANGUAGE'\n | 'ADMIN_DISCUSSION_LANGUAGE_AUDIT_EVENTS'\n | 'ADMIN_USER_FLAGGING'\n | 'ADMIN_GEOGAME_ROUNDS'\n | 'ADMIN_GEOGAME_STATIC_COORDINATES'\n | 'ADMIN_GEOGAME_AUDIT_EVENTS'\n | 'ADMIN_EVENT_GAME_CHAT'\n | 'ADMIN_EVENT_CHAT'\n | 'ADMIN_EVENT_PARTICIPANTS'\n | 'ADMIN_PICTIONARY_AUDIT'\n | 'ADMIN_PICTIONARY_GAMES'\n | 'ADMIN_PICTIONARY_ROUNDS'\n | 'ADMIN_PICTIONARY_GUESS'\n | 'ADMIN_PICTIONARY_WORDS'\n | 'ADMIN_TRANSLATION_AUDIT'\n | 'ADMIN_REDIS_CONSOLE'\n | 'ADMIN_DEBUGGING_CONSOLE'\n | 'CREATE_TRANSCRIPT'\n | 'ADMIN_RECORDINGS'\n | 'HUDDLE_HOST'\nexport type RolesInDb = {\n id?: number | null\n name?: string | null\n permissions?: Permission[] | null\n}\nexport type PublicUserProfile = {\n id?: number | null\n username?: string | null\n image?: string | null\n full_name?: string | null\n country?: string | null\n pronouns?: Pronouns | null\n profile?: TeacherProfileResponse | null\n accent?: string | null\n voice_gender?: string | null\n learning?: LanguageProficiency[] | null\n speaking?: LanguageProficiency[] | null\n status?: UserStatus\n display_name?: string | null\n is_company?: boolean | null\n cefr_level?: string | null\n roles?: RolesInDb[] | null\n plan?: string | null\n}\nexport type UserRating = {\n rater: PublicUserProfile\n updated_time: string\n created_time: string\n rating: number\n comment?: string | null\n}\nexport const {\n useRatingRateUserMutation,\n useRatingDeleteRatingMutation,\n useRatingChangeRatingForUserMutation,\n useRatingGetRatingIdQuery,\n useLazyRatingGetRatingIdQuery,\n useRatingGetRatingsForUserQuery,\n useLazyRatingGetRatingsForUserQuery,\n} = injectedRtkApi\n","import { api as ratingApi } from './auto-generated/rating'\n\nratingApi.enhanceEndpoints({\n endpoints: {},\n})\n\nexport { ratingApi }\n","import { current } from '@reduxjs/toolkit'\nimport { api as revisionApi } from './auto-generated/revision'\n\nrevisionApi.enhanceEndpoints({\n endpoints: {\n revisionDeleteFeedback: {\n async onQueryStarted(args, { dispatch, queryFulfilled }) {\n let patchResult\n try {\n const { data } = await queryFulfilled\n patchResult = dispatch(\n revisionApi.util.updateQueryData(\n 'revisionGetRecording',\n { id: data.recording_id.toString() },\n (draft) => {\n const updatedChunks = draft.chunks.map((chunk) => {\n if (chunk.comments.some((comment) => comment.id === args.id)) {\n const updatedComments = chunk.comments.filter(\n (comment) => comment.id !== args.id,\n )\n return { ...chunk, comments: updatedComments }\n }\n return chunk\n })\n return { ...draft, chunks: updatedChunks }\n },\n ),\n )\n } catch {\n patchResult?.undo()\n }\n },\n },\n // revisionAddUserPreferenceOnFeedback: {\n // async onQueryStarted(args, { dispatch, queryFulfilled, getState }) {\n // let patchResult\n // try {\n // const { data } = await queryFulfilled\n // patchResult = dispatch(\n // revisionApi.util.updateQueryData(\n // 'revisionGetRecording',\n // { id: data.recording_id.toString() },\n // (draft) => {\n // const { user } = (getState() as RootState).auth\n // const updatedChunks = draft.chunks.map((chunk) => {\n // if (chunk.comments.some((comment) => comment.id === data?.feedback_id)) {\n // return {\n // ...chunk,\n // comments: chunk.comments.map((comment) => {\n // if (comment.id === args.id) {\n // console.log(\"preference : \", data.preference)\n // return data.preference\n // ? {\n // ...comment,\n // dislikes: { ...comment.dislikes, user_ids: [] },\n // likes: {\n // ...comment.likes,\n // user_ids: [...comment.likes.user_ids, user.id],\n // },\n // }\n // : {\n // ...comment,\n // dislikes: {\n // ...comment.dislikes,\n // user_ids: [...comment.dislikes.user_ids, user.id],\n // },\n // likes: { ...comment.likes, user_ids: [] },\n // }\n // }\n // return comment\n // }),\n // }\n // }\n // return chunk\n // })\n // draft.chunks = updatedChunks\n // return draft\n // },\n // ),\n // )\n // } catch {\n // patchResult?.undo()\n // }\n // },\n // },\n revisionCreateTeacherFeedback: {\n async onQueryStarted(args, { dispatch, queryFulfilled, getState }) {\n let patchResult\n try {\n const { data: newComment } = await queryFulfilled\n patchResult = dispatch(\n revisionApi.util.updateQueryData(\n 'revisionGetRecording',\n { id: args.createFeedbackRequest.recording_id },\n (draft) => {\n const { user } = (getState() as RootState).auth\n const startTime = args.createFeedbackRequest.start_time\n const endTime = args.createFeedbackRequest.end_time\n const chunkIsExist = draft.chunks.some(\n (chunk) => chunk.start_time === startTime && chunk.end_time === endTime,\n )\n let updatedChunks\n chunkIsExist\n ? (updatedChunks = draft.chunks.map((chunk) => {\n if (chunk.start_time === startTime && chunk.end_time === endTime) {\n return {\n ...chunk,\n comments: [\n ...chunk.comments,\n {\n id: newComment.id,\n is_ai: false,\n comment: args.createFeedbackRequest.comment,\n dislikes: { count: 0, user_ids: [] },\n created_at: newComment.created_at,\n likes: { count: 0, user_ids: [] },\n user: {\n avatar: user?.image,\n full_name: user?.full_name,\n id: user?.id,\n },\n },\n ],\n }\n }\n return chunk\n }))\n : (updatedChunks = [\n ...draft.chunks,\n {\n created_at: newComment.created_at,\n end_time: endTime,\n start_time: startTime,\n comments: [\n {\n id: newComment.id,\n is_ai: false,\n comment: args.createFeedbackRequest.comment,\n dislikes: { count: 0, user_ids: [] },\n created_at: newComment.created_at,\n likes: { count: 0, user_ids: [] },\n user: {\n avatar: user?.image,\n full_name: user?.full_name,\n id: user?.user_id,\n },\n },\n ],\n },\n ])\n draft.chunks = updatedChunks\n return draft\n },\n ),\n )\n } catch {\n patchResult?.undo()\n }\n },\n },\n revisionCreateAudioTeacherFeedback: {\n async onQueryStarted(args, { dispatch, queryFulfilled, getState }) {\n try {\n const { data: newFeedback } = await queryFulfilled\n patchResult = dispatch(\n revisionApi.util.updateQueryData(\n 'revisionGetRecording',\n {\n id: args.bodyCreateAudioTeacherFeedbackApiV1ExtensionsRevisionAudioFeedbackPost.get(\n 'recording_id',\n ),\n },\n (draft) => {\n const { user } = (getState() as RootState).auth\n const startTime = parseFloat(\n args.bodyCreateAudioTeacherFeedbackApiV1ExtensionsRevisionAudioFeedbackPost.get(\n 'start_time',\n ),\n )\n const endTime = parseFloat(\n args.bodyCreateAudioTeacherFeedbackApiV1ExtensionsRevisionAudioFeedbackPost.get(\n 'end_time',\n ),\n )\n const chunkIsExist = draft.chunks.some(\n (chunk) => chunk.start_time === startTime && chunk.end_time === endTime,\n )\n\n let updatedChunks\n chunkIsExist\n ? (updatedChunks = draft.chunks.map((chunk) => {\n if (chunk.start_time === startTime && chunk.end_time === endTime) {\n return {\n ...chunk,\n comments: [\n ...chunk.comments,\n {\n id: newFeedback.id,\n is_ai: false,\n audio_comment_url: newFeedback.audio_comment_url,\n dislikes: { count: 0, user_ids: [] },\n created_at: newFeedback.created_at,\n likes: { count: 0, user_ids: [] },\n user: {\n avatar: user?.image,\n full_name: user?.full_name,\n id: newFeedback.user_id,\n },\n },\n ],\n }\n }\n return chunk\n }))\n : (updatedChunks = [\n ...draft.chunks,\n {\n created_at: newFeedback.created_at,\n end_time: endTime,\n start_time: startTime,\n comments: [\n {\n id: newFeedback.id,\n is_ai: false,\n audio_comment_url: newFeedback.audio_comment_url,\n dislikes: { count: 0, user_ids: [] },\n created_at: newFeedback.created_at,\n likes: { count: 0, user_ids: [] },\n user: {\n avatar: user?.image,\n full_name: user?.full_name,\n id: newFeedback.user_id,\n },\n },\n ],\n },\n ])\n draft.chunks = updatedChunks\n return draft\n },\n ),\n )\n } catch {\n patchResult?.undo()\n }\n },\n },\n // revisionDeleteRecording: {\n // async onQueryStarted(args, { dispatch, queryFulfilled }) {\n // let patchResult\n // try {\n // await queryFulfilled\n // patchResult = dispatch(\n // revisionApi.util.updateQueryData(\n // 'revisionListRecordings',\n // { testMyself: false },\n // (draftRecordings) => {\n // return draftRecordings?.filter((item) => item?.id !== args?.id)\n // },\n // ),\n // )\n // } catch {\n // patchResult?.undo()\n // }\n // },\n // },\n },\n})\n\nexport { revisionApi }\n","import { baseApi as api } from '../api'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n storageUploadToBucket: build.mutation<\n StorageUploadToBucketApiResponse,\n StorageUploadToBucketApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/storage/upload/${queryArg.bucketName}`,\n method: 'POST',\n body: queryArg.bodyUploadToBucketApiV1ExtensionsStorageUploadBucketNamePost,\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type StorageUploadToBucketApiResponse =\n /** status 201 Successful Response */ UploadFileResponse\nexport type StorageUploadToBucketApiArg = {\n bucketName: string\n bodyUploadToBucketApiV1ExtensionsStorageUploadBucketNamePost: BodyUploadToBucketApiV1ExtensionsStorageUploadBucketNamePost\n}\nexport type UploadFileResponse = {\n url: string\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type BodyUploadToBucketApiV1ExtensionsStorageUploadBucketNamePost = {\n file: Blob\n}\nexport const { useStorageUploadToBucketMutation } = injectedRtkApi\n","import { api as storageApi } from './auto-generated/storage'\nimport { api as revisionApi } from './auto-generated/revision'\n\nstorageApi.enhanceEndpoints({\n endpoints: {},\n})\n\nexport { storageApi }\n","import { baseApi as api } from '../api'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n teacherFilterTeachers: build.query<\n TeacherFilterTeachersApiResponse,\n TeacherFilterTeachersApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/teacher/teacher`,\n params: {\n query: queryArg.query,\n price_from: queryArg.priceFrom,\n price_to: queryArg.priceTo,\n languages: queryArg.languages,\n order_by: queryArg.orderBy,\n offset: queryArg.offset,\n date_from: queryArg.dateFrom,\n date_to: queryArg.dateTo,\n lesson_duration: queryArg.lessonDuration,\n teacher_from: queryArg.teacherFrom,\n is_local: queryArg.isLocal,\n is_pro: queryArg.isPro,\n is_partner: queryArg.isPartner,\n limit: queryArg.limit,\n is_reviewer: queryArg.isReviewer,\n },\n }),\n }),\n teacherCreateLesson: build.mutation({\n query: (queryArg) => ({\n url: `/api/v1/extensions/teacher/lessons`,\n method: 'POST',\n body: queryArg.teacherLessonCreateRequest,\n }),\n }),\n teacherListLesson: build.query({\n query: (queryArg) => ({\n url: `/api/v1/extensions/teacher/lessons`,\n params: { teacher_id: queryArg.teacherId, language_code: queryArg.languageCode },\n }),\n }),\n teacherUpdateLesson: build.mutation({\n query: (queryArg) => ({\n url: `/api/v1/extensions/teacher/lessons/${queryArg.lessonId}`,\n method: 'PUT',\n body: queryArg.teacherLessonUpdateRequest,\n }),\n }),\n teacherGetLesson: build.query({\n query: (queryArg) => ({ url: `/api/v1/extensions/teacher/lessons/${queryArg.lessonId}` }),\n }),\n teacherGetTeacherAvailabilities: build.query<\n TeacherGetTeacherAvailabilitiesApiResponse,\n TeacherGetTeacherAvailabilitiesApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/teacher/teacher/availability/${queryArg.userId}`,\n }),\n }),\n teacherGetCategories: build.query({\n query: () => ({ url: `/api/v1/extensions/teacher/categories` }),\n }),\n teacherCreateGroupLesson: build.mutation<\n TeacherCreateGroupLessonApiResponse,\n TeacherCreateGroupLessonApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/teacher/teacher/group_lesson`,\n method: 'POST',\n body: queryArg.createGroupLessonRequest,\n }),\n }),\n teacherGetGroupLessons: build.query<\n TeacherGetGroupLessonsApiResponse,\n TeacherGetGroupLessonsApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/teacher/teacher/group_lesson`,\n params: {\n teacher_id: queryArg.teacherId,\n language_code: queryArg.languageCode,\n start_time: queryArg.startTime,\n end_time: queryArg.endTime,\n offset: queryArg.offset,\n limit: queryArg.limit,\n is_upcoming: queryArg.isUpcoming,\n max_reserved_seats: queryArg.maxReservedSeats,\n min_reserved_seats: queryArg.minReservedSeats,\n max_price: queryArg.maxPrice,\n min_price: queryArg.minPrice,\n },\n }),\n }),\n teacherUpdateGroupLesson: build.mutation<\n TeacherUpdateGroupLessonApiResponse,\n TeacherUpdateGroupLessonApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/teacher/teacher/group_lesson/${queryArg.id}`,\n method: 'PUT',\n body: queryArg.updateGroupLessonRequest,\n }),\n }),\n teacherGetGroupLesson: build.query<\n TeacherGetGroupLessonApiResponse,\n TeacherGetGroupLessonApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/teacher/teacher/group_lesson/${queryArg.id}`,\n }),\n }),\n teacherCreateGroupLessonBooking: build.mutation<\n TeacherCreateGroupLessonBookingApiResponse,\n TeacherCreateGroupLessonBookingApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/teacher/teacher/group_lesson_booking`,\n method: 'POST',\n body: queryArg.bookGroupLessonRequest,\n }),\n }),\n teacherListGroupLessonBookings: build.query<\n TeacherListGroupLessonBookingsApiResponse,\n TeacherListGroupLessonBookingsApiArg\n >({\n query: () => ({ url: `/api/v1/extensions/teacher/teacher/group_lesson_bookings` }),\n }),\n teacherDeleteGroupLessonBooking: build.mutation<\n TeacherDeleteGroupLessonBookingApiResponse,\n TeacherDeleteGroupLessonBookingApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/teacher/teacher/group_lesson_bookings/${queryArg.bookId}`,\n method: 'DELETE',\n }),\n }),\n teacherUpdateTeacherHomepage: build.mutation<\n TeacherUpdateTeacherHomepageApiResponse,\n TeacherUpdateTeacherHomepageApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/teacher/teacher/homepage`,\n method: 'PUT',\n body: queryArg.teacherUpdateHomepageRequest,\n }),\n }),\n teacherCreateTeacherHomepage: build.mutation<\n TeacherCreateTeacherHomepageApiResponse,\n TeacherCreateTeacherHomepageApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/teacher/teacher/homepage`,\n method: 'POST',\n body: queryArg.createTeacherHomepageRequest,\n }),\n }),\n teacherGetTeacherHomepage: build.query<\n TeacherGetTeacherHomepageApiResponse,\n TeacherGetTeacherHomepageApiArg\n >({\n query: () => ({ url: `/api/v1/extensions/teacher/teacher/get_homepage` }),\n }),\n teacherGetTeacherHomepageByUrl: build.query<\n TeacherGetTeacherHomepageByUrlApiResponse,\n TeacherGetTeacherHomepageByUrlApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/teacher/teacher/get_homepage_by_url/${queryArg.url}`,\n }),\n }),\n teacherCloseTeacherHomepage: build.mutation<\n TeacherCloseTeacherHomepageApiResponse,\n TeacherCloseTeacherHomepageApiArg\n >({\n query: () => ({ url: `/api/v1/extensions/teacher/teacher/close_homepage`, method: 'POST' }),\n }),\n teacherCheckHomepageUrlAvailability: build.mutation<\n TeacherCheckHomepageUrlAvailabilityApiResponse,\n TeacherCheckHomepageUrlAvailabilityApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/teacher/teacher/check_url_availability`,\n method: 'POST',\n body: queryArg.teacherHomepageUrlAvailabilityRequest,\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type TeacherFilterTeachersApiResponse =\n /** status 200 Successful Response */ ListTeacherProfileWithLessonsResponse\nexport type TeacherFilterTeachersApiArg = {\n query?: string | null\n priceFrom?: number | null\n priceTo?: number | null\n languages?: string[]\n orderBy?: string | null\n offset?: number | null\n dateFrom?: string | null\n dateTo?: string | null\n lessonDuration?: number[]\n teacherFrom?: string | null\n isLocal?: boolean | null\n isPro?: boolean | null\n isPartner?: boolean | null\n limit?: number\n isReviewer?: boolean | null\n}\nexport type TeacherCreateLessonApiResponse =\n /** status 201 Successful Response */ TeacherLessonCreateResponse\nexport type TeacherCreateLessonApiArg = {\n teacherLessonCreateRequest: TeacherLessonCreateRequest\n}\nexport type TeacherListLessonApiResponse =\n /** status 200 Successful Response */ TeacherLessonGetResponse[]\nexport type TeacherListLessonApiArg = {\n teacherId: number\n languageCode?: string | null\n}\nexport type TeacherUpdateLessonApiResponse =\n /** status 200 Successful Response */ TeacherLessonUpdateResponse\nexport type TeacherUpdateLessonApiArg = {\n lessonId: number\n teacherLessonUpdateRequest: TeacherLessonUpdateRequest\n}\nexport type TeacherGetLessonApiResponse =\n /** status 200 Successful Response */ TeacherLessonGetResponse\nexport type TeacherGetLessonApiArg = {\n lessonId: number\n}\nexport type TeacherGetTeacherAvailabilitiesApiResponse =\n /** status 200 Successful Response */ GetTeacherAvailabilityResponse[]\nexport type TeacherGetTeacherAvailabilitiesApiArg = {\n userId: number\n}\nexport type TeacherGetCategoriesApiResponse = /** status 200 Successful Response */ any[]\nexport type TeacherGetCategoriesApiArg = void\nexport type TeacherCreateGroupLessonApiResponse =\n /** status 201 Successful Response */ CreateGroupLessonResponse\nexport type TeacherCreateGroupLessonApiArg = {\n createGroupLessonRequest: CreateGroupLessonRequest\n}\nexport type TeacherGetGroupLessonsApiResponse =\n /** status 200 Successful Response */ ListGroupLessonResponse\nexport type TeacherGetGroupLessonsApiArg = {\n teacherId?: number | null\n languageCode?: string | null\n startTime?: string | null\n endTime?: string | null\n offset?: number\n limit?: number\n isUpcoming?: boolean | null\n maxReservedSeats?: number | null\n minReservedSeats?: number | null\n maxPrice?: number | null\n minPrice?: number | null\n}\nexport type TeacherUpdateGroupLessonApiResponse = /** status 200 Successful Response */ any\nexport type TeacherUpdateGroupLessonApiArg = {\n id: number\n updateGroupLessonRequest: UpdateGroupLessonRequest\n}\nexport type TeacherGetGroupLessonApiResponse =\n /** status 200 Successful Response */ GroupLessonGetResponse\nexport type TeacherGetGroupLessonApiArg = {\n id: number\n}\nexport type TeacherCreateGroupLessonBookingApiResponse = /** status 200 Successful Response */ any\nexport type TeacherCreateGroupLessonBookingApiArg = {\n bookGroupLessonRequest: BookGroupLessonRequest\n}\nexport type TeacherListGroupLessonBookingsApiResponse =\n /** status 200 Successful Response */ GroupLessonsBookingsResponse[]\nexport type TeacherListGroupLessonBookingsApiArg = void\nexport type TeacherDeleteGroupLessonBookingApiResponse = /** status 200 Successful Response */ any\nexport type TeacherDeleteGroupLessonBookingApiArg = {\n bookId: number\n}\nexport type TeacherUpdateTeacherHomepageApiResponse = /** status 200 Successful Response */ any\nexport type TeacherUpdateTeacherHomepageApiArg = {\n teacherUpdateHomepageRequest: TeacherUpdateHomepageRequest\n}\nexport type TeacherCreateTeacherHomepageApiResponse = /** status 200 Successful Response */ any\nexport type TeacherCreateTeacherHomepageApiArg = {\n createTeacherHomepageRequest: CreateTeacherHomepageRequest\n}\nexport type TeacherGetTeacherHomepageApiResponse =\n /** status 200 Successful Response */ TeacherHomepageGetResponse\nexport type TeacherGetTeacherHomepageApiArg = void\nexport type TeacherGetTeacherHomepageByUrlApiResponse =\n /** status 200 Successful Response */ TeacherHomepageGetResponse\nexport type TeacherGetTeacherHomepageByUrlApiArg = {\n url: string\n}\nexport type TeacherCloseTeacherHomepageApiResponse = /** status 200 Successful Response */ any\nexport type TeacherCloseTeacherHomepageApiArg = void\nexport type TeacherCheckHomepageUrlAvailabilityApiResponse =\n /** status 200 Successful Response */ TeacherHomepageUrlAvailabilityResponse\nexport type TeacherCheckHomepageUrlAvailabilityApiArg = {\n teacherHomepageUrlAvailabilityRequest: TeacherHomepageUrlAvailabilityRequest\n}\nexport type UserStatus = 'STUDENT' | 'TEACHER'\nexport type UserAddressResponse = {\n country?: string | null\n city?: string | null\n state?: string | null\n zip_code?: string | null\n}\nexport type LanguageExperience = 0 | 1 | 2 | 3 | 4\nexport type LanguageProficiency = {\n language: string\n proficiency: LanguageExperience\n}\nexport type TeacherProfileRatingResponse = {\n rating_average: number\n reviews_count: number\n}\nexport type TeacherProfileResponse = {\n bio?: string | null\n experience?: string | null\n tags?: string[] | null\n video_link?: string | null\n teaching_style?: string | null\n price_per_hour?: number | null\n partner?: boolean | null\n is_reviewer?: boolean | null\n}\nexport type TeacherProfileWithLessonsResponse = {\n id?: number | null\n username: string\n email?: string | null\n bio?: string | null\n image?: string | null\n full_name?: string | null\n date_of_birth?: string | null\n status?: UserStatus\n address?: UserAddressResponse | null\n is_pro?: boolean\n learning?: LanguageProficiency[] | null\n speaking?: LanguageProficiency[] | null\n rating_summary: TeacherProfileRatingResponse\n profile?: TeacherProfileResponse | null\n}\nexport type ListTeacherProfileWithLessonsResponse = {\n data: TeacherProfileWithLessonsResponse[]\n count: number\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type TeacherLessonCreateResponseNested = {\n id: number\n duration: number\n number_of_lessons: number\n price_per_lesson: number\n total: number\n}\nexport type TeacherLessonCreateResponse = {\n id: number\n title: string\n description: string\n language_level_from: string\n language_level_to: string\n student_tag: string\n category: string\n language_id: number\n packages: TeacherLessonCreateResponseNested[]\n}\nexport type LessonPackageCreateRequestNested = {\n duration: number\n number_of_lessons: number\n price_per_lesson: number\n total: number\n}\nexport type TeacherLessonCreateRequest = {\n title: string\n description: string\n language_level_from: string\n language_level_to: string\n student_tag: string\n category: string\n language_code: string\n packages: LessonPackageCreateRequestNested[]\n}\nexport type TeacherLessonGetResponse = {\n id: number\n title: string\n description: string\n language_level_from: string\n language_level_to: string\n student_tag: string\n category: string\n language_id: number\n packages: TeacherLessonCreateResponseNested[]\n}\nexport type TeacherLessonUpdateResponse = {\n id: number\n title: string\n description: string\n language_level_from: string\n language_level_to: string\n student_tag: string\n category: string\n language_id: number\n}\nexport type TeacherLessonUpdateRequest = {\n title?: string | null\n description?: string | null\n language_level_from?: string | null\n language_level_to?: string | null\n student_tag?: string | null\n category?: string | null\n language_code?: string | null\n}\nexport type GetTeacherAvailabilityResponse = {\n user_id: number\n start_time: string\n end_time: string\n}\nexport type GroupLessonDateResponse = {\n id: number\n start_time: string\n end_time?: string | null\n event_id: number\n event_uuid: string\n is_live: boolean\n}\nexport type CreateGroupLessonResponse = {\n id: number\n title: string\n description: string\n tags: string[]\n language_code: string\n class_type: string\n price_with_cash: number\n max_students: number\n reserved_seats?: number\n video_link?: string | null\n thumbnail_link?: string | null\n is_private?: boolean | null\n show_profile_picture?: boolean | null\n dates: GroupLessonDateResponse[]\n}\nexport type GroupLessonEnum = 'SINGLE_LESSON' | 'ONE_TO_ONE'\nexport type LanguageLevelEnum = 'ANY_LEVEL' | 'BEGINNER' | 'INTERMEDIATE' | 'ADVANCED'\nexport type CreateGroupLessonRequest = {\n title: string\n description: string\n class_type: GroupLessonEnum\n tags: string[]\n language_code: string\n price_with_cash: number\n max_students: number\n reserved_seats: number\n video_link?: string | null\n thumbnail_link?: string | null\n start_time: string\n weeks?: number\n repeat_days?: number[]\n is_private?: boolean | null\n show_profile_picture?: boolean | null\n lesson_rules?: string | null\n language_level?: LanguageLevelEnum[]\n}\nexport type GroupLessonGetResponse = {\n id: number\n title: string\n description: string\n tags: string[]\n class_type: string\n language_code: string\n price_with_cash: number\n max_students: number\n reserved_seats?: number\n video_link?: string | null\n thumbnail_link?: string | null\n user_id: number\n is_private?: boolean | null\n show_profile_picture?: boolean | null\n dates: GroupLessonDateResponse[]\n}\nexport type ListGroupLessonResponse = {\n data: GroupLessonGetResponse[]\n count: number\n}\nexport type UpdateGroupLessonRequest = {\n title?: string | null\n description?: string | null\n tags?: string[] | null\n video_link?: string | null\n thumbnail_link?: string | null\n show_profile_picture?: boolean | null\n}\nexport type BookGroupLessonRequest = {\n group_lesson_date_id: number\n}\nexport type GroupLessonsBookingsResponse = {\n id: number\n user_id: number\n group_lesson_date_id: number\n created_at: string\n}\nexport type Feature = {\n title: string\n description: string\n url: string\n is_video?: boolean\n}\nexport type TeacherUpdateHomepageRequest = {\n name?: string | null\n url?: string | null\n profile_pic?: string | null\n thumbnail?: string | null\n video_url?: string | null\n welcome_message?: string | null\n price?: number | null\n currency?: string | null\n visible_prices?: number[] | null\n expected_days?: number | null\n color?: string | null\n faq_color?: string | null\n features?: Feature[] | null\n ai_price?: number | null\n partner?: boolean | null\n}\nexport type CreateTeacherHomepageRequest = {\n name: string\n url: string\n profile_pic?: string | null\n thumbnail?: string | null\n video_url?: string | null\n welcome_message?: string | null\n price?: number | null\n currency?: string | null\n visible_prices?: number[] | null\n expected_days?: number | null\n color?: string | null\n faq_color?: string | null\n features?: Feature[] | null\n}\nexport type TeacherHomepageGetResponse = {\n id?: number | null\n name?: string | null\n url?: string | null\n profile_pic?: string | null\n thumbnail?: string | null\n video_url?: string | null\n welcome_message?: string | null\n price?: number | null\n currency?: string | null\n visible_prices?: number[] | null\n expected_days?: number | null\n max_subscribers?: number | null\n user_id?: number | null\n color?: string | null\n faq_color?: string | null\n features?: Feature[] | null\n ai_price?: number | null\n partner?: boolean | null\n}\nexport type TeacherHomepageUrlAvailabilityResponse = {\n is_available: boolean\n}\nexport type TeacherHomepageUrlAvailabilityRequest = {\n url: string\n}\nexport const {\n useTeacherFilterTeachersQuery,\n useLazyTeacherFilterTeachersQuery,\n useTeacherCreateLessonMutation,\n useTeacherListLessonQuery,\n useLazyTeacherListLessonQuery,\n useTeacherUpdateLessonMutation,\n useTeacherGetLessonQuery,\n useLazyTeacherGetLessonQuery,\n useTeacherGetTeacherAvailabilitiesQuery,\n useLazyTeacherGetTeacherAvailabilitiesQuery,\n useTeacherGetCategoriesQuery,\n useLazyTeacherGetCategoriesQuery,\n useTeacherCreateGroupLessonMutation,\n useTeacherGetGroupLessonsQuery,\n useLazyTeacherGetGroupLessonsQuery,\n useTeacherUpdateGroupLessonMutation,\n useTeacherGetGroupLessonQuery,\n useLazyTeacherGetGroupLessonQuery,\n useTeacherCreateGroupLessonBookingMutation,\n useTeacherListGroupLessonBookingsQuery,\n useLazyTeacherListGroupLessonBookingsQuery,\n useTeacherDeleteGroupLessonBookingMutation,\n useTeacherUpdateTeacherHomepageMutation,\n useTeacherCreateTeacherHomepageMutation,\n useTeacherGetTeacherHomepageQuery,\n useLazyTeacherGetTeacherHomepageQuery,\n useTeacherGetTeacherHomepageByUrlQuery,\n useLazyTeacherGetTeacherHomepageByUrlQuery,\n useTeacherCloseTeacherHomepageMutation,\n useTeacherCheckHomepageUrlAvailabilityMutation,\n} = injectedRtkApi\n","import { api as teacherApi } from './auto-generated/teacher'\nteacherApi.enhanceEndpoints({\n endpoints: {\n teacherCloseTeacherHomepage: {\n async onQueryStarted(args, { dispatch, queryFulfilled }) {\n let patchResult\n try {\n const { data } = await queryFulfilled\n const { data: teacherHomepage } = await dispatch(\n teacherApi.endpoints.teacherGetTeacherHomepage.initiate(undefined, {\n forceRefetch: true,\n }),\n )\n console.log('this new homepage', teacherHomepage)\n patchResult = dispatch(\n teacherApi.util.updateQueryData('teacherGetTeacherHomepage', args, (draft) => {\n Object.assign(draft, teacherHomepage)\n }),\n )\n } catch {\n patchResult?.undo()\n }\n },\n },\n },\n})\n\nexport { teacherApi }\n","import { baseApi as api } from '../api'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({}),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport const {} = injectedRtkApi\n","import { api as transcriptApi } from './auto-generated/transcript'\n\ntranscriptApi.enhanceEndpoints({\n endpoints: {},\n})\n\nexport { transcriptApi }\n","import { baseApi as api } from '../api'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n translateTranslateString: build.mutation<\n TranslateTranslateStringApiResponse,\n TranslateTranslateStringApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/translation/translate`,\n method: 'POST',\n body: queryArg.translateTextRequest,\n }),\n }),\n translateGetTranslateLanguages: build.query<\n TranslateGetTranslateLanguagesApiResponse,\n TranslateGetTranslateLanguagesApiArg\n >({\n query: () => ({ url: `/api/v1/extensions/translation/languages` }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type TranslateTranslateStringApiResponse =\n /** status 200 Successful Response */ TranslateResponse\nexport type TranslateTranslateStringApiArg = {\n translateTextRequest: TranslateTextRequest\n}\nexport type TranslateGetTranslateLanguagesApiResponse =\n /** status 200 Successful Response */ TranslateLanguagesResponse[]\nexport type TranslateGetTranslateLanguagesApiArg = void\nexport type TranslateResponse = {\n translated_text: string\n detected_source_language?: string | null\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type TranslateTextRequest = {\n source_language?: string | null\n destination_language: string\n text: string\n}\nexport type TranslateLanguagesResponse = {\n language_code: string\n display_name: string\n supported_source: boolean\n supported_target: boolean\n}\nexport const {\n useTranslateTranslateStringMutation,\n useTranslateGetTranslateLanguagesQuery,\n useLazyTranslateGetTranslateLanguagesQuery,\n} = injectedRtkApi\n","import { api as translateApi } from './auto-generated/translate'\n\ntranslateApi.enhanceEndpoints({\n endpoints: {},\n})\n\nexport { translateApi }\n","import { baseApi as api } from '../api'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n weblinksCreateWeblink: build.mutation<\n WeblinksCreateWeblinkApiResponse,\n WeblinksCreateWeblinkApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/weblinks/weblink`,\n method: 'POST',\n body: queryArg.createWeblinkRequest,\n }),\n }),\n weblinksGetWeblinks: build.query({\n query: (queryArg) => ({\n url: `/api/v1/extensions/weblinks/weblink`,\n params: { query: queryArg.query, is_public: queryArg.isPublic },\n }),\n }),\n weblinksDeleteWeblink: build.mutation<\n WeblinksDeleteWeblinkApiResponse,\n WeblinksDeleteWeblinkApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/weblinks/weblink/${queryArg.weblinkId}`,\n method: 'DELETE',\n }),\n }),\n weblinksGetWeblink: build.query({\n query: (queryArg) => ({ url: `/api/v1/extensions/weblinks/weblink/${queryArg.weblinkId}` }),\n }),\n weblinksUpdateWeblinks: build.mutation<\n WeblinksUpdateWeblinksApiResponse,\n WeblinksUpdateWeblinksApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/weblinks/weblink/${queryArg.weblinkId}`,\n method: 'PUT',\n body: queryArg.updateWeblinkRequest,\n }),\n }),\n weblinksViewWeblink: build.mutation({\n query: (queryArg) => ({\n url: `/api/v1/extensions/weblinks/weblink/${queryArg.weblinkId}/view`,\n method: 'POST',\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type WeblinksCreateWeblinkApiResponse = /** status 200 Successful Response */ any\nexport type WeblinksCreateWeblinkApiArg = {\n createWeblinkRequest: CreateWeblinkRequest\n}\nexport type WeblinksGetWeblinksApiResponse = /** status 200 Successful Response */ any\nexport type WeblinksGetWeblinksApiArg = {\n query?: string | null\n isPublic?: boolean | null\n}\nexport type WeblinksDeleteWeblinkApiResponse = /** status 204 Successful Response */ void\nexport type WeblinksDeleteWeblinkApiArg = {\n weblinkId: number\n}\nexport type WeblinksGetWeblinkApiResponse = /** status 200 Successful Response */ any\nexport type WeblinksGetWeblinkApiArg = {\n weblinkId: number\n}\nexport type WeblinksUpdateWeblinksApiResponse = /** status 200 Successful Response */ any\nexport type WeblinksUpdateWeblinksApiArg = {\n weblinkId: number\n updateWeblinkRequest: UpdateWeblinkRequest\n}\nexport type WeblinksViewWeblinkApiResponse = /** status 200 Successful Response */ any\nexport type WeblinksViewWeblinkApiArg = {\n weblinkId: number\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type CreateWeblinkRequest = {\n link: string\n title?: string | null\n tags: string[]\n shared_with: number[]\n}\nexport type UpdateWeblinkRequest = {\n link?: string | null\n title?: string | null\n is_public?: boolean | null\n tags?: string[] | null\n shared_with?: number[] | null\n}\nexport const {\n useWeblinksCreateWeblinkMutation,\n useWeblinksGetWeblinksQuery,\n useLazyWeblinksGetWeblinksQuery,\n useWeblinksDeleteWeblinkMutation,\n useWeblinksGetWeblinkQuery,\n useLazyWeblinksGetWeblinkQuery,\n useWeblinksUpdateWeblinksMutation,\n useWeblinksViewWeblinkMutation,\n} = injectedRtkApi\n","import { api as weblinksApi } from './auto-generated/weblinks'\n\nweblinksApi.enhanceEndpoints({\n endpoints: {\n weblinksCreateWeblink: {\n async onQueryStarted(args, { dispatch, queryFulfilled }) {\n try {\n const response = await queryFulfilled\n dispatch(\n weblinksApi.util.updateQueryData(\n 'weblinksGetWeblinks',\n { query: '' },\n (draftWeblinks) => {\n draftWeblinks.push(response.data)\n },\n ),\n )\n } catch {}\n },\n },\n weblinksDeleteWeblink: {\n async onQueryStarted(args, { dispatch, queryFulfilled }) {\n const patchResult = dispatch(\n weblinksApi.util.updateQueryData(\n 'weblinksGetWeblinks',\n { query: '' },\n (draftWeblinks) => {\n return draftWeblinks.filter((e) => e.id !== args.weblinkId)\n },\n ),\n )\n try {\n await queryFulfilled\n } catch {\n patchResult.undo()\n }\n },\n },\n weblinksUpdateWeblinks: {\n async onQueryStarted(args, { dispatch, queryFulfilled }) {\n const patchResult = dispatch(\n weblinksApi.util.updateQueryData(\n 'weblinksGetWeblinks',\n { query: '' },\n (draftWeblinks) => {\n draftWeblinks.map((e) => {\n if (e.id === args.weblinkId) {\n e.title = args.updateWeblinkRequest.title\n e.link = args.updateWeblinkRequest.link\n e.tags = args.updateWeblinkRequest.tags\n }\n })\n },\n ),\n )\n try {\n await queryFulfilled\n } catch {\n patchResult.undo()\n }\n },\n },\n },\n})\n\nexport { weblinksApi }\n","import { baseApi as api } from '../api'\nconst injectedRtkApi = api.injectEndpoints({\n endpoints: (build) => ({\n whiteboardStartWhiteboard: build.mutation<\n WhiteboardStartWhiteboardApiResponse,\n WhiteboardStartWhiteboardApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/whiteboard/${queryArg.eventId}/start`,\n method: 'POST',\n params: { exit_: queryArg.exit },\n }),\n }),\n whiteboardExitWhiteboard: build.mutation<\n WhiteboardExitWhiteboardApiResponse,\n WhiteboardExitWhiteboardApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/whiteboard/${queryArg.eventId}/exit`,\n method: 'POST',\n }),\n }),\n whiteboardCreatePermission: build.mutation<\n WhiteboardCreatePermissionApiResponse,\n WhiteboardCreatePermissionApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/whiteboard/${queryArg.eventId}/user_permission`,\n method: 'POST',\n body: queryArg.whiteBoardPermissionRequest,\n }),\n }),\n whiteboardListPermission: build.query<\n WhiteboardListPermissionApiResponse,\n WhiteboardListPermissionApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/whiteboard/${queryArg.eventId}/user_permissions`,\n }),\n }),\n whiteboardDeleteAllPermissions: build.mutation<\n WhiteboardDeleteAllPermissionsApiResponse,\n WhiteboardDeleteAllPermissionsApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/whiteboard/${queryArg.eventId}/user_permissions`,\n method: 'DELETE',\n }),\n }),\n whiteboardDeletePermission: build.mutation<\n WhiteboardDeletePermissionApiResponse,\n WhiteboardDeletePermissionApiArg\n >({\n query: (queryArg) => ({\n url: `/api/v1/extensions/whiteboard/${queryArg.eventId}/user_permission/${queryArg.participantId}`,\n method: 'DELETE',\n }),\n }),\n }),\n overrideExisting: false,\n})\nexport { injectedRtkApi as api }\nexport type WhiteboardStartWhiteboardApiResponse = /** status 200 Successful Response */ any\nexport type WhiteboardStartWhiteboardApiArg = {\n eventId: string\n exit?: boolean\n}\nexport type WhiteboardExitWhiteboardApiResponse = /** status 200 Successful Response */ any\nexport type WhiteboardExitWhiteboardApiArg = {\n eventId: string\n}\nexport type WhiteboardCreatePermissionApiResponse = /** status 201 Successful Response */ any\nexport type WhiteboardCreatePermissionApiArg = {\n eventId: string\n whiteBoardPermissionRequest: WhiteBoardPermissionRequest\n}\nexport type WhiteboardListPermissionApiResponse =\n /** status 200 Successful Response */ WhiteBoardPermissionResponse[]\nexport type WhiteboardListPermissionApiArg = {\n eventId: string\n}\nexport type WhiteboardDeleteAllPermissionsApiResponse = /** status 200 Successful Response */ any\nexport type WhiteboardDeleteAllPermissionsApiArg = {\n eventId: string\n}\nexport type WhiteboardDeletePermissionApiResponse = /** status 200 Successful Response */ any\nexport type WhiteboardDeletePermissionApiArg = {\n eventId: string\n participantId: number\n}\nexport type ValidationError = {\n loc: (string | number)[]\n msg: string\n type: string\n}\nexport type HttpValidationError = {\n detail?: ValidationError[]\n}\nexport type WhiteBoardPermissionEnum = 'DRAW'\nexport type WhiteBoardPermissionRequest = {\n permissions: WhiteBoardPermissionEnum[]\n participant_id: number\n}\nexport type WhiteBoardPermissionResponse = {\n permissions: string[]\n participant_id: number\n event_id: number\n}\nexport const {\n useWhiteboardStartWhiteboardMutation,\n useWhiteboardExitWhiteboardMutation,\n useWhiteboardCreatePermissionMutation,\n useWhiteboardListPermissionQuery,\n useLazyWhiteboardListPermissionQuery,\n useWhiteboardDeleteAllPermissionsMutation,\n useWhiteboardDeletePermissionMutation,\n} = injectedRtkApi\n","import { api as whiteboardApi } from './auto-generated/whiteboard'\nimport { api as eventApi } from './auto-generated/event'\n\nwhiteboardApi.enhanceEndpoints({\n endpoints: {\n whiteboardStartWhiteboard: {\n async onQueryStarted(args, { dispatch, queryFulfilled }) {\n dispatch(\n eventApi.util.updateQueryData('eventGetEventById', args, (draftEvent) => {\n draftEvent.event_type = 'WHITEBOARD'\n }),\n )\n dispatch(\n eventApi.util.updateQueryData('eventGetCurrentEvent', undefined, (draftEvent) => {\n draftEvent.event_type = 'WHITEBOARD'\n }),\n )\n try {\n await queryFulfilled\n } catch {}\n },\n },\n },\n})\n\nexport { whiteboardApi }\n","import { authApi } from '@app/services'\nimport { store } from '@app/store'\nimport { isTokenExpired } from '@common/utils/tokens'\nimport { logout, setAccessToken } from '../auth-actions'\n\nexport const refreshTokenIfExpired = async () => {\n const tokens = store.getState().auth.tokens\n if (tokens?.refresh_token && isTokenExpired(tokens.refresh_token.expiration_time)) {\n store.dispatch(logout())\n }\n if (tokens?.access_token && isTokenExpired(tokens.access_token.expiration_time)) {\n const { data } = await store.dispatch(\n authApi.endpoints.authRefreshJwtAccessToken.initiate({\n authorization: `Bearer ${tokens?.refresh_token.token}`,\n }),\n )\n store.dispatch(setAccessToken(data.access_token))\n }\n return store.getState().auth.tokens?.access_token?.token\n}\n","import { useAppSelector } from '@common/hooks'\nimport { useTheme as useUtilsTheme } from '@common/utils/styles'\nimport { modeType, selectMode } from './theme.slice'\n\nexport const useTheme = () => {\n const mode = useAppSelector(selectMode)\n const resolvedMode = resolveMode(mode)\n\n const isDark = resolvedMode === 'dark'\n const isLight = resolvedMode === 'light'\n\n const theme = useUtilsTheme()\n\n return { mode: resolveMode(mode), isDark, isLight, theme }\n}\n\nconst resolveMode = (mode: modeType) => {\n if (mode === 'browser') {\n return window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches\n ? 'dark'\n : 'light'\n }\n return mode\n}\n","import React, { useEffect, useRef, useState } from 'react'\nimport { motion } from 'framer-motion'\nimport {\n InputAdornment,\n TextField,\n inputBaseClasses,\n Popover,\n Typography,\n Stack,\n Button,\n Box,\n IconButton,\n Avatar,\n PaperProps,\n Tooltip,\n CircularProgress,\n} from '@common/components'\nimport {\n ChatContainer,\n ChatHistory,\n ChatMessageContainer,\n LoadingOrErrorContainer,\n MessageTypo,\n MessageTypoContainer,\n} from './chat.styles'\nimport {\n CheckCircleIcon,\n CheckCircleOutlineIcon,\n ErrorIcon,\n InsertEmoticonIcon,\n SendIcon,\n TranslateIcon,\n} from '@common/icons'\nimport { ChatMessage as ChatMessageType, ChatUser } from '@types'\nimport EmojiPicker from 'emoji-picker-react'\nimport { useTheme } from '@features/theme/theme.hooks'\n\ntype ChatProps = PaperProps & {\n fullScreen?: boolean\n disabled?: boolean\n users: ChatUser[]\n messages: ChatMessageType[]\n onSendMessage: (message: string) => void\n}\n\nconst Chat = React.forwardRef((props, ref) => {\n const { messages, onSendMessage, users, fullScreen, disabled, ...restProps } = props\n const messagesEndRef = useRef(null)\n const [message, setMessage] = useState('')\n\n const handleSubmit = () => {\n onSendMessage(message)\n setMessage('')\n }\n\n const scrollToBottom = () => {\n if (messagesEndRef.current) {\n messagesEndRef.current.scrollTo({\n top: messagesEndRef.current.scrollHeight,\n behavior: 'smooth',\n })\n }\n }\n\n React.useEffect(() => {\n scrollToBottom()\n }, [messages])\n\n return (\n \n \n {messages?.map((msg, k) => {\n const user = users.find((user) => user?.id === msg.userId)\n // return msg.message\n console.log(user)\n return (\n \n )\n })}\n \n \n \n )\n})\n\ninterface ChatMessageProps {\n type: 'SENT' | 'RECEIVED'\n message: string\n avatar: string\n username: string\n loading?: boolean\n error?: boolean\n success?: boolean\n}\n\nconst ChatMessage = (props: ChatMessageProps) => {\n const { type, username, message, avatar, loading, error, success, ...restProps } = props\n const { theme } = useTheme()\n const variants = {\n initial: {\n opacity: 0.5,\n y: 10,\n },\n animate: {\n y: 0,\n opacity: 1,\n },\n }\n if (type === 'RECEIVED') {\n return (\n \n \n \n \n \n \n \n {message}\n \n \n }\n variant='text'\n size='small'\n sx={{ alignSelf: 'self-start', fontSize: '0.5rem' }}\n // onClick={() => onTranslate(message)}\n >\n Translate\n \n \n \n )\n }\n if (type === 'SENT') {\n return (\n \n {loading ? (\n \n \n \n ) : success ? (\n \n \n \n ) : (\n error && (\n \n \n \n )\n )}\n \n \n {message}\n \n \n \n )\n }\n return null\n}\n\nconst MessageToSend = ({ message, onChange, onSubmit, disabled }) => {\n const handleChange = (e) => {\n onChange(e.target.value)\n }\n const handleSubmit = (e) => {\n e.preventDefault()\n onSubmit(message)\n onChange('')\n }\n const insertEmoji = (emoji) => {\n onChange(`${message}${emoji}`)\n }\n\n return (\n \n \n \n \n ),\n }}\n color='primary'\n sx={{\n mr: 1,\n [`& .${inputBaseClasses.root}`]: {\n height: '40px',\n },\n }}\n />\n \n \n \n \n )\n}\n\nconst EmojiPickerButton = ({ onEmojiClick }) => {\n const { isDark, theme } = useTheme()\n const [anchorEl, setAnchorEl] = useState(null)\n const handleClick = (event) => {\n setAnchorEl(event.currentTarget)\n }\n const handleClose = () => {\n setAnchorEl(null)\n }\n const open = Boolean(anchorEl)\n\n const handleEmojiClick = (emoji, e) => {\n onEmojiClick(emoji.emoji)\n handleClose()\n }\n\n return (\n <>\n \n \n \n \n \n \n \n )\n}\n\nChat.displayName = 'Chat'\nexport default Chat\n","import { Box, styled } from '@mui/material'\n\nexport const BackdropButton = styled(Box)({\n position: 'absolute',\n top: '50%',\n left: '50%',\n width: '50px',\n height: '50px',\n borderRadius: '50%',\n transform: 'translate(-50%,-50%)',\n zIndex: 3,\n})\n\nexport const BackdropButtonWithShadow = styled(Box)(({ theme }) => ({\n position: 'absolute',\n top: '50%',\n left: '50%',\n width: '50px',\n height: '50px',\n borderRadius: '50%',\n transform: 'translate(-50%,-50%)',\n boxShadow: theme.shadows[5],\n zIndex: -1,\n}))\n\nexport const Container = styled('div')(({ theme, placement }) => {\n const placements = placement.split('-')\n return {\n position: 'relative',\n transform: `translate(${placements[1] === 'end' ? '20px' : '-20px'},${\n placements[0] === 'top' ? '20px' : '-20px'\n })`,\n paddingBottom: '2px',\n paddingTop: '20px',\n minWidth: 120,\n borderRadius: '15px',\n boxShadow: theme.shadows[5],\n }\n})\n","/* eslint-disable react/display-name */\nimport React, { useEffect, useRef, useState } from 'react'\nimport { Box, ClickAwayListener, Grow, Popper, useTheme, IconButton, Paper } from '@mui/material'\nimport { BackdropButton, BackdropButtonWithShadow, Container } from './popper-button.styles'\nimport CloseIcon from '@mui/icons-material/Close'\n\nconst PopperButton = React.forwardRef((props, ref) => {\n const { icon: Icon, children, buttonProps, containerProps, ...restProps } = props\n\n const { theme } = useTheme()\n const color = theme.palette.background.paper\n const [open, setOpen] = useState(false)\n const anchorRef = useRef(null)\n const handleToggle = () => {\n setOpen((prevOpen) => !prevOpen)\n }\n const handleClose = (event: any) => {\n if (anchorRef.current && anchorRef.current.contains(event.target)) {\n return\n }\n setOpen(false)\n }\n // return focus to the button when we transitioned from !open -> open\n const prevOpen = useRef(open)\n useEffect(() => {\n if (prevOpen.current === true && open === false) {\n anchorRef.current.focus()\n }\n\n prevOpen.current = open\n }, [open])\n\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {({ TransitionProps, placement }) => {\n return (\n \n \n \n \n \n \n \n \n
{children}
\n
\n
\n \n \n \n )\n }}\n \n \n )\n})\n\nexport default PopperButton\n","import { Box, styled } from '@mui/material'\nimport React, { useEffect, useImperativeHandle, useRef, useState } from 'react'\n\nconst CodeInput = React.forwardRef(\n ({ code, setCode, status, sx, length, focus, inputMode = 'numeric', ...rest }, ref) => {\n const digit1El = useRef(null)\n const digit2El = useRef(null)\n const digit3El = useRef(null)\n const digit4El = useRef(null)\n const digit5El = useRef(null)\n const digit6El = useRef(null)\n const [digit1, setDigit1] = useState(code && code[0] ? code[0] : '')\n const [digit2, setDigit2] = useState(code && code[1] ? code[1] : '')\n const [digit3, setDigit3] = useState(code && code[2] ? code[2] : '')\n const [digit4, setDigit4] = useState(code && code[3] ? code[3] : '')\n const [digit5, setDigit5] = useState(code && code[4] ? code[4] : '')\n const [digit6, setDigit6] = useState(code && code[5] ? code[5] : '')\n\n const digits = [\n { ref: digit1El, value: digit1, setValue: setDigit1 },\n { ref: digit2El, value: digit2, setValue: setDigit2 },\n { ref: digit3El, value: digit3, setValue: setDigit3 },\n { ref: digit4El, value: digit4, setValue: setDigit4 },\n { ref: digit5El, value: digit5, setValue: setDigit5 },\n { ref: digit6El, value: digit6, setValue: setDigit6 },\n ].slice(0, length)\n\n const handleChange = (e, elem, k) => {\n if (e.target.value && e.target.value.length === 1) {\n elem.setValue(e.target.value)\n if (k < digits.length - 1) {\n digits[k + 1].ref.current.focus()\n }\n } else if (e.target.value === '') {\n elem.setValue(e.target.value)\n if (k > 0) {\n digits[k - 1].ref.current.focus()\n }\n } else {\n elem.current.select()\n }\n }\n\n const handleKeyDown = (e, index) => {\n if (e.key === 'ArrowRight' && index < length - 1) {\n digits[index + 1].ref.current.focus()\n }\n\n if (e.key === 'ArrowLeft' && index > 0) {\n digits[index - 1].ref.current.focus()\n }\n }\n\n useEffect(() => {\n setCode(`${digit1}${digit2}${digit3}${digit4}${digit5}${digit6}`)\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [digit1, digit2, digit3, digit4, digit5, digit6])\n\n useEffect(() => {\n if (focus) {\n digits[0].ref.current.focus()\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [focus])\n\n useImperativeHandle(ref, () => ({\n reset() {\n setDigit1('')\n setDigit2('')\n setDigit3('')\n setDigit4('')\n setDigit5('')\n setDigit6('')\n digits[0].ref.current.focus()\n },\n }))\n\n return (\n \n \n {digits.slice(0, length).map((elem, index) => (\n handleChange(e, elem, index)}\n onFocus={() => elem.ref.current.select()}\n type='text'\n onPaste={(e) => {\n e.preventDefault()\n const text = e.clipboardData.getData('Text')\n digits.forEach((elem, k) => {\n elem.setValue(text[k])\n })\n }}\n onKeyDown={(e) => handleKeyDown(e, index)}\n inputMode={inputMode}\n status={status}\n />\n ))}\n \n \n )\n },\n)\n\nCodeInput.defaultProps = {\n length: 4,\n status: 'neutral',\n}\n\nconst handleStatus = (status, success, error, neutral) => {\n switch (status) {\n case 'success':\n return success\n case 'error':\n return error\n case 'neutral':\n return neutral\n default:\n return neutral\n }\n}\n\nconst StyledTextField = styled('input')(({ status, theme }) => ({\n color: handleStatus(status, 'green', 'red', 'grey'),\n backgroundColor: 'white',\n boxShadow: theme.shadows[1],\n borderRadius: '10px',\n fontFamily: 'Poppins',\n fontSize: '36px',\n fontWeight: 600,\n textAlign: 'center',\n width: '60px',\n height: '60px',\n border: handleStatus(status, '2px solid green', '2px solid red', '1px solid grey'),\n '&:focus': {\n appearance: 'none',\n outline: 'none',\n border: `3px solid ${theme.palette.primary.main}`,\n },\n}))\n\nexport default CodeInput\n","import { forwardRef, useState } from 'react'\nimport {\n Box,\n Checkbox,\n ClickAwayListener,\n FormControlLabel,\n FormGroup,\n Stack,\n styled,\n Tooltip,\n tooltipClasses,\n Typography,\n useTheme,\n} from '@mui/material'\nimport { IconButton } from '@mui/material'\nimport CloseIcon from '@mui/icons-material/Close'\n\ntype Language = {\n code: string\n name: string\n flag_image: string\n level: number\n}\n\ninterface SelectedOptionProps {\n language: Language\n onRemove: () => void\n onChange: () => void\n autoLevelOpen: boolean\n}\n\nconst SelectedOption: React.FC = (props) => {\n const { language, onRemove, onChange, autoLevelOpen, ...restProps } = props\n const { code, name: label, level, flag_image: flagImage } = language\n return (\n \n \n \n \n \n \n \n \n \n \n )\n}\n\nconst Container = styled(Box)({\n position: 'relative',\n})\n\nconst Field = styled(Box)(({ theme }) => ({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n border: `1px solid ${theme.palette.primary.main}`,\n padding: '12px 10px 12px 21px',\n borderRadius: '5px',\n minWidth: '100px',\n}))\n\nconst Label = styled(Typography)({\n flex: 1,\n marginRight: '20px',\n})\n\nconst CloseButton = styled(IconButton)({\n position: 'absolute',\n top: '50%',\n right: 0,\n transform: 'translate(calc(100% + 15px),-50%)',\n p: 0,\n})\n\nconst FlagImg = styled('img')({\n width: '25px',\n borderRadius: '2px',\n})\n\ninterface LanguageLevelProps {\n level: number\n onChange: (arg: number) => void\n autoLevelOpen: boolean\n}\nconst LanguageLevel: React.FC = (props) => {\n const { level, onChange, autoLevelOpen, ...restProps } = props\n const [open, setOpen] = useState(autoLevelOpen)\n const handleTooltipClose = () => {\n setOpen(false)\n }\n const handleTooltipOpen = () => {\n setOpen((prevState) => !prevState)\n }\n\n return (\n <>\n \n \n \n {[\n { label: 'Beginner', level: 1 },\n { label: 'Intermediate', level: 2 },\n { label: 'Advanced', level: 3 },\n ].map((elem) => (\n {\n onChange(elem.level)\n setTimeout(handleTooltipClose, 200)\n }}\n />\n }\n label={\n \n \n {elem.label}\n \n \n \n }\n />\n ))}\n \n }\n >\n \n \n \n \n \n )\n}\n\ninterface LevelDisplayProps {\n level: number\n onClick?: () => void\n}\n\nconst LevelDisplay = forwardRef(\n ({ level, onClick, ...rest }, ref) => {\n const { theme } = useTheme()\n return (\n \n {[0, 1, 2].map((elem, k) => (\n k ? theme.palette.primary.main : '#C4C4C4',\n borderRadius: '3px',\n }}\n >\n ))}\n \n )\n },\n)\n\nLevelDisplay.displayName = 'LevelDisplay'\n\nexport { SelectedOption }\n","import {\n Autocomplete,\n AutocompleteProps,\n Box,\n BoxProps,\n styled,\n TextField,\n Typography,\n} from '@mui/material'\nimport { SelectedOption } from './selected-option'\n\ninterface LanguageAutocompleteProps extends AutocompleteProps {\n value: {\n code: string\n flag_image: string\n name: string\n level: number\n }[]\n label: string\n // onChange: (arg: any, arg2: any) => void\n defaultLevel: number\n autoLevelOpen: boolean\n containerProps: BoxProps\n}\nconst LanguageAutocomplete: React.FC = (props) => {\n const { value, label, onChange, defaultLevel, autoLevelOpen, containerProps, ...restProps } =\n props\n const handleRemove = (code: string) => {\n onChange(\n {},\n value.filter((elem: any) => elem.code !== code),\n )\n }\n\n const handleChangeLevel = (code: string, newLevel: number) => {\n onChange(\n {},\n value.map((elem: any) => {\n if (elem.code === code) {\n return { ...elem, level: newLevel }\n }\n return elem\n }),\n )\n }\n\n const handleChange = (\n e: any,\n newValue: {\n code: string\n flag_image: string\n name: string\n level: number\n }[],\n ) => {\n onChange(\n e,\n newValue.map((elem) => {\n if (!elem.level) {\n return { ...elem, level: defaultLevel }\n }\n return elem\n }),\n )\n }\n\n return (\n \n {value.length > 0 && (\n \n {value.map((language, k) => (\n handleChangeLevel(language.code, newLevel)}\n onRemove={() => handleRemove(language.code)}\n autoLevelOpen={autoLevelOpen}\n sx={{ mb: 1 }}\n />\n ))}\n \n )}\n null}\n renderInput={(params) => }\n renderOption={(props, option: { code: string; flag_image: string; name: string }) => (\n \n {option.name}\n \n \n )}\n getOptionLabel={(option: { code: string; flag_image: string; name: string }) => option.name}\n onChange={handleChange}\n isOptionEqualToValue={(option, value) => option.code === value.code}\n {...restProps}\n />\n \n )\n}\n\nconst Container = styled(Box)({\n paddingRight: '40px',\n})\n\nLanguageAutocomplete.defaultProps = {\n label: 'Select a language...',\n defaultLevel: 1,\n autoLevelOpen: true,\n}\n\nexport default LanguageAutocomplete\n","import styled from '@emotion/styled'\nimport { Box, Button } from '@mui/material'\n\nexport const Container = styled(Box, {\n shouldForwardProp: (prop) => prop !== 'fullWidth',\n})(({ theme, fullWidth, elevation }) => ({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n background: theme.palette.background.paper,\n borderRadius: 15,\n paddingLeft: 15,\n height: 50,\n overflow: 'hidden',\n flexWrap: 'nowrap',\n width: fullWidth && '100%',\n boxShadow: theme.shadows[elevation],\n}))\n\nexport const CopyButton = styled(Button)(({ theme }) => ({\n height: '100%',\n borderRadius: '15px',\n minWidth: 105,\n}))\n","import { Box, CardActionArea, IconButton as IconButtonMui, styled } from '@mui/material'\n\nexport const CardAction = styled(CardActionArea, {\n shouldForwardProp: (prop) => prop !== 'direction',\n})(({ direction }) => ({\n zIndex: '1111',\n position: 'absolute',\n top: '0',\n height: '100%',\n width: '72px',\n borderRadius: direction === 'left' ? '0 20px 20px 0' : '20px 0 0 20px',\n background: 'rgba(255,255,255,0.3)',\n}))\n","import styled from '@emotion/styled'\nimport { Box, LinearProgress, linearProgressClasses } from '@mui/material'\n\nexport const StyledLinearProgress = styled(LinearProgress)(({ value }) => ({\n height: 20,\n backgroundColor: 'transparent',\n [`& .${linearProgressClasses.bar}`]: {\n transition: '1s',\n borderTopRightRadius: value === 100 ? 0 : 10,\n borderBottomRightRadius: value === 100 ? 0 : 10,\n },\n}))\n\nexport const Container = styled(Box)(({ height }) => ({\n height: '20px',\n width: '100%',\n}))\n","import React from 'react'\nimport { Container, StyledLinearProgress } from './ProgressBar.styles'\n\nconst ProgressBar = (props) => {\n const { height, currentStep, numberOfSteps, ...restProps } = props\n const progress =\n numberOfSteps && currentStep && currentStep <= numberOfSteps && currentStep >= 0\n ? (1 / (numberOfSteps - 1)) * 100 * currentStep\n : 0\n return (\n \n \n \n )\n}\n\nProgressBar.defaultProps = {\n height: 20,\n}\n\nexport { ProgressBar }\n","import { Typography, styled, Box } from '@mui/material'\n\nexport const StepsWrapper = styled(Box)({\n display: 'flex',\n})\nexport const StepsContainer = styled(Box)({\n display: 'flex',\n marginLeft: 'auto',\n})\nexport const StepTypography = styled(Typography, {\n shouldForwardProp: (prop) => prop !== 'active',\n})((props) => ({\n background: props.active && '#0F82FF',\n fontFamily: 'Poppins',\n fontSize: '20px',\n fontWeight: 700,\n padding: '10.808px 12.352px',\n borderRadius: '7px',\n lineHeight: '26px',\n letterSpacing: '0em',\n textAlign: 'center',\n color: props.active ? '#FFFFFF' : props.theme.palette.mode === 'dark' ? '#BBBBBB' : '#8E8E8E',\n}))\n","import styled from '@emotion/styled'\nimport { Box } from '..'\n\nexport const Container = styled(Box)({\n position: 'relative',\n width: '100%',\n height: '100%',\n paddingBottom: '20px',\n})\n","import { Controller } from '@lib/form'\nimport { TimePicker, TimePickerProps } from '@mui/x-date-pickers'\nimport React from 'react'\n\ntype ControllerTimePickerProps = TimePickerProps & {\n control?: any\n}\n\nconst ControllerTimePicker: React.FC = React.forwardRef((props, ref) => {\n const { name, control, ...restProps } = props\n if (Boolean(control) && typeof name === 'string') {\n return (\n {\n return \n }}\n />\n )\n }\n return \n})\n\nControllerTimePicker.displayName = 'ControllerTimePicker'\n\nexport default ControllerTimePicker\nexport * from '@mui/x-date-pickers/TimePicker'\n","import { Controller } from '@lib/form'\nimport { DatePicker, DatePickerProps } from '@mui/x-date-pickers'\nimport React from 'react'\n\ntype ControllerDatePickerProps = DatePickerProps & {\n control?: any\n}\n\nconst ControllerDatePicker: React.FC = React.forwardRef((props, ref) => {\n const { name, control, ...restProps } = props\n if (Boolean(control) && typeof name === 'string') {\n return (\n {\n return \n }}\n />\n )\n }\n return \n})\n\nControllerDatePicker.displayName = 'ControllerDatePicker'\n\nexport default ControllerDatePicker\nexport * from '@mui/x-date-pickers/DatePicker'\n","import { Editor } from 'react-draft-wysiwyg'\nimport 'react-draft-wysiwyg/dist/react-draft-wysiwyg.css'\nimport {\n Box,\n Button,\n ColorPicker,\n InputAdornment,\n Paper,\n Popover,\n Stack,\n Switch,\n TextField,\n Typography,\n} from '@common/components'\nimport { ThemeProvider, useTheme } from '@common/utils/styles'\nimport React, { useState } from 'react'\nimport { ContentState, EditorState } from 'draft-js'\nimport { convertToRaw } from 'draft-js'\nimport draftjsToHtml from 'draftjs-to-html'\nimport htmlToDraft from 'html-to-draftjs'\nimport { CheckIcon, LinkIcon } from '@common/icons'\nimport { useTogglePopover } from '@common/hooks'\nimport lightTheme from '@styles/themes/light-theme'\nimport './styles.css'\ninterface TextEditorProps {\n htmlContent: string\n bgPickOption?: boolean\n onChange: (arg: string) => void\n color?: string\n onColorChange?: () => void\n onSave?: () => void\n onCancel?: () => void\n readOnly?: boolean\n onUpdate?: () => void\n handleChangeVideo?: () => void\n videoLink?: string\n handleChangeExternalLink?: () => void\n externalLink?: string\n}\nconst TextEditor: React.FC = (props) => {\n const {\n htmlContent,\n bgPickOption,\n handleChangeVideo,\n videoLink,\n handleChangeExternalLink,\n externalLink,\n onChange: handleChange,\n color,\n onColorChange,\n onSave,\n onCancel,\n readOnly,\n onUpdate,\n ...rest\n } = props\n const contentBlock = htmlToDraft(htmlContent ? htmlContent : '')\n const contentState = ContentState.createFromBlockArray(contentBlock.contentBlocks)\n const [editorState, setEditorState] = useState(\n htmlContent ? EditorState.createWithContent(contentState) : EditorState.createEmpty(),\n )\n\n const onEditorStateChange = (editorState) => {\n setEditorState(editorState)\n handleChange(draftjsToHtml(convertToRaw(editorState.getCurrentContent())))\n }\n\n const getCustomButton = () => {\n const buttons = []\n if (bgPickOption) {\n buttons.push()\n }\n if (onCancel) {\n buttons.push(\n onCancel()}\n color='error'\n key={'3'}\n variant='outlined'\n size='small'\n sx={{\n border: '1px solid rgba(0,0,0,0.1)',\n ml: 1,\n height: '31.6px',\n borderRadius: '0px',\n width: '40px',\n }}\n >\n cancel\n ,\n )\n }\n if (onSave) {\n buttons.push(\n onSave()}\n key={'2'}\n variant='outlined'\n size='small'\n sx={{\n border: '1px solid rgba(0,0,0,0.1)',\n ml: 1,\n height: '31.6px',\n borderRadius: '0px',\n }}\n >\n \n save\n ,\n )\n }\n if (onUpdate) {\n buttons.push(\n onUpdate()}\n key={'2'}\n variant='outlined'\n size='small'\n sx={{\n border: '1px solid rgba(0,0,0,0.1)',\n ml: 1,\n height: '31.6px',\n borderRadius: '0px',\n }}\n >\n \n save\n ,\n )\n }\n // buttons.push(\n // \n // \n // Include video\n // \n // {checked && (\n // \n // \n // \n // ),\n // }}\n // />\n // )}\n // \n // ,\n // )\n // buttons.push(\n // \n // \n // External link\n // \n // {checkedExternal && (\n // \n // \n // \n // ),\n // }}\n // />\n // )}\n // \n // ,\n // )\n return buttons\n }\n\n return (\n \n \n \n )\n}\n\nexport default TextEditor\n","import React from 'react'\nimport { Box, Button, ClickAwayListener, Popper } from '@mui/material'\nimport { HexColorPicker } from 'react-colorful'\nimport ColorLensIcon from '@mui/icons-material/ColorLens'\n\ninterface ColorPickerProps {\n color: string\n onChangeColor: () => void\n}\nconst ColorPicker: React.FC = (props) => {\n const { color, onChangeColor } = props\n const [anchorEl, setAnchorEl] = React.useState(null)\n\n const handleClick = (event: React.MouseEvent) => {\n setAnchorEl(event.currentTarget)\n }\n\n const handleClose = () => {\n setAnchorEl(null)\n }\n\n const open = Boolean(anchorEl)\n const id = open ? 'simple-popover' : undefined\n return (\n \n \n \n \n \n \n \n \n \n \n )\n}\n\nexport default ColorPicker\n","import { DateCalendar, DateCalendarProps } from '@mui/x-date-pickers/DateCalendar'\nimport React from 'react'\nimport { Controller } from '@lib/form'\n\ntype ControllerDateCalendarProps = DateCalendarProps & {\n control?: any\n}\n\nconst ControllerDateCalendar: React.FC = React.forwardRef(\n (props, ref) => {\n const { name, control, ...restProps } = props\n if (Boolean(control) && typeof name === 'string') {\n return (\n {\n return \n }}\n />\n )\n }\n return \n },\n)\n\nControllerDateCalendar.displayName = 'ControllerDateCalendar'\n\nexport default ControllerDateCalendar\nexport * from '@mui/x-date-pickers/DateCalendar'\n","import { MobileTimePicker, MobileTimePickerProps } from '@mui/x-date-pickers'\nimport React from 'react'\nimport { Controller } from '@lib/form'\n\ntype ControllerMobileTimePickerProps = MobileTimePickerProps & {\n control?: any\n}\n\nconst ControllerMobileTimePicker: React.FC = React.forwardRef(\n (props, ref) => {\n const { name, control, ...restProps } = props\n if (Boolean(control) && typeof name === 'string') {\n return (\n {\n return \n }}\n />\n )\n }\n return \n },\n)\n\nControllerMobileTimePicker.displayName = 'ControllerMobileTimePicker'\n\nexport default ControllerMobileTimePicker\nexport * from '@mui/x-date-pickers/MobileTimePicker'\n","// const AVATAR_PLACEHOLDER = 'https://www.gravatar.com/avatar/084e0343a0486ff05530df6c705c8bb4'\n\nexport const handleGravatar = (avatarImage: string | undefined) => {\n if (avatarImage?.includes('https://www.gravatar.com')) {\n return avatarImage ? `${avatarImage}?s=200&d=identicon` : undefined\n } else {\n return avatarImage\n }\n}\n","import { Box, styled } from '@mui/material'\n\nexport const Bar = styled(Box, {\n shouldForwardProp: (prop) => prop !== 'background',\n})(({ theme, background }) => ({\n width: '6px',\n height: '100%',\n backgroundColor: background ? theme.palette.primary.main : 'rgb(230,230,230)',\n boxShadow: theme.shadows[4],\n borderRadius: '3px',\n}))\n","import { Stack } from '@mui/material'\nimport { forwardRef } from 'react'\nimport { Bar } from './level-display.styles'\n\nconst LevelDisplay = forwardRef((props, ref) => {\n const { level, sx, ...restProps } = props\n return (\n \n {[0, 1, 2, 3].map((elem, k) => (\n k - 1} />\n ))}\n \n )\n})\n\nLevelDisplay.displayName = 'LevelDisplay'\n\nexport default LevelDisplay\n","import styled from '@emotion/styled'\nimport { Box, Stack, Typography } from '@common/components'\n\nexport const CountdownWrapper = styled(Stack)({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n})\n\n// export const NumberCard = styled(Box)({\n// padding: '5px 10px',\n// color: '#fff',\n// background: '#494E53',\n// marginLeft: '4px',\n// borderRadius: '5px',\n// fontSize: '25px',\n// width: '35px',\n// })\n\nexport const NumberCard = styled(Box, {\n shouldForwardProp: (prop) => prop !== 'size',\n})(({ size }: { size: string }) => ({\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n color: '#fff',\n background: '#494E53',\n marginLeft: '4px',\n borderRadius: '5px',\n fontSize: size === 'small' ? '16px' : '25px',\n width: size === 'small' ? '22px' : '35px',\n padding: size === 'small' ? '5px' : '5px 10px',\n}))\n\nexport const NumbersWrapper = styled(Box)({\n display: 'flex',\n})\n\nexport const SeperatorWrapper = styled(Typography)({\n fontWeight: 700,\n textAlign: 'center',\n})\n","import React, { useCallback, useEffect, useState } from 'react'\nimport { EmblaCarouselType, EmblaOptionsType } from 'embla-carousel'\nimport useEmblaCarousel from 'embla-carousel-react'\nimport { flushSync } from 'react-dom'\n// import imageByIndex from './imageByIndex'\nimport './styles.css'\nimport IconButton from '../icon-button'\nimport { ArrowBackIosNewIcon, ArrowForwardIosIcon } from '@common/icons'\nimport Box from '../box'\nconst TWEEN_FACTOR = 4.2\n\nconst numberWithinRange = (number: number, min: number, max: number): number =>\n Math.min(Math.max(number, min), max)\n\ntype PropType = {\n options?: EmblaOptionsType\n children: React.ReactNode\n sliders: any\n}\n\nconst EmblaCarousel: React.FC = (props) => {\n const { sliders, options = { loop: true }, children } = props\n const [emblaRef, emblaApi] = useEmblaCarousel(options)\n const [tweenValues, setTweenValues] = useState([])\n const [prevBtnDisabled, setPrevBtnDisabled] = useState(true)\n const [nextBtnDisabled, setNextBtnDisabled] = useState(true)\n const onScroll = useCallback(() => {\n if (!emblaApi) return\n\n const engine = emblaApi.internalEngine()\n const scrollProgress = emblaApi.scrollProgress()\n\n const styles = emblaApi.scrollSnapList().map((scrollSnap, index) => {\n let diffToTarget = scrollSnap - scrollProgress\n\n if (engine.options.loop) {\n engine.slideLooper.loopPoints.forEach((loopItem) => {\n const target = loopItem.target()\n if (index === loopItem.index && target !== 0) {\n const sign = Math.sign(target)\n if (sign === -1) diffToTarget = scrollSnap - (1 + scrollProgress)\n if (sign === 1) diffToTarget = scrollSnap + (1 - scrollProgress)\n }\n })\n }\n const tweenValue = 1 - Math.abs(diffToTarget * TWEEN_FACTOR)\n return numberWithinRange(tweenValue, 0, 1)\n })\n setTweenValues(styles)\n }, [emblaApi, setTweenValues])\n\n const scrollPrev = useCallback(() => emblaApi && emblaApi.scrollPrev(), [emblaApi])\n const scrollNext = useCallback(() => emblaApi && emblaApi.scrollNext(), [emblaApi])\n\n const onSelect = useCallback((emblaApi: EmblaCarouselType) => {\n setPrevBtnDisabled(!emblaApi.canScrollPrev())\n setNextBtnDisabled(!emblaApi.canScrollNext())\n }, [])\n\n useEffect(() => {\n if (!emblaApi) return\n\n onScroll()\n onSelect(emblaApi)\n emblaApi.on('scroll', () => {\n flushSync(() => onScroll())\n })\n emblaApi.on('select', onSelect)\n emblaApi.on('reInit', onScroll)\n }, [emblaApi, onScroll])\n\n return (\n \n
\n
\n
{children}
\n
\n {sliders?.length > 1 && (\n
\n \n \n \n \n \n \n
\n )}\n
\n
\n )\n}\n\nexport const EmblaSlider = (props: { children: React.ReactNode }) => {\n const { children } = props\n return (\n
\n {children}\n
\n )\n}\nexport default EmblaCarousel\n","import Autocomplete, { AutocompleteProps } from '@mui/material/Autocomplete'\nimport { Controller } from '@lib/form'\n\ntype ControllerAutocompleteProps = AutocompleteProps & {\n control?: any\n}\n\nconst ControllerAutocomplete: React.FC = (props) => {\n const { name, control, ...restProps } = props\n if (Boolean(control) && typeof name === 'string') {\n return (\n {\n return (\n {\n args.field.onChange(newValue)\n }}\n />\n )\n }}\n />\n )\n }\n return \n}\n\nexport default ControllerAutocomplete\nexport * from '@mui/material/Autocomplete'\n","import { Button as ButtonMui } from '@mui/material'\nimport { styled } from '@common/utils/styles'\n\nexport const Button = styled(ButtonMui, {\n shouldForwardProp: (prop) => prop !== 'floating',\n})<{ floating?: boolean }>(({ color, floating, theme }) => ({\n transition: 'all .2s ease-in-out',\n ...(floating && {\n textTransform: 'none',\n border: 'none',\n maxWidth: '100%',\n margin: '0 auto',\n display: 'flex',\n fontWeight: 'bold',\n color: color === 'secondary' ? '#202930' : theme.palette.mode === 'dark' ? 'white' : '#3D474F',\n background:\n color === 'primary'\n ? theme.palette.primary.main\n : color === 'secondary'\n ? '#FED363'\n : theme.palette.mode === 'dark'\n ? '#3D474F'\n : 'transparent',\n transform: 'translate(5px, -2px)',\n boxShadow:\n color === 'primary'\n ? 'inset 0px 0px 0px 1px #282E33, -4px 4px 0 0 #282E33'\n : color === 'secondary'\n ? 'inset 0px 0px 0px 0px #665428, -4px 4px 0 0 #665428'\n : theme.palette.mode === 'dark'\n ? 'inset 0px 0px 0px 1px #282E33, -4px 4px 0 0 #282E33'\n : 'inset 0px 0px 0px 1px #0c0f13, -4px 4px 0 0 #0c0f13',\n ':hover ': {\n border: 'none',\n // border: theme.palette.mode === 'dark' ? 'none' : '1px solid rgba(80,70,70,0.5)',\n transform: 'translate(0px, 0px)',\n boxShadow: 'inset 0px 0px 0px 0px #0c0f13, 0px 0px 3px 0 #0c0f13',\n background:\n color === 'primary'\n ? theme.palette.primary.main\n : color === 'secondary'\n ? '#FED363'\n : theme.palette.mode === 'dark'\n ? '#3D474F'\n : 'transparent',\n },\n }),\n}))\n","import { LoadingButton } from '@mui/lab'\nimport { ButtonProps } from '@mui/material/Button'\nimport { Button as MuiButton } from './button.styles'\n\nconst Button = (\n props: {\n floating?: boolean\n loading?: boolean\n } & ButtonProps,\n): React.ReactElement => {\n const { loading, ...restProps } = props\n\n if (typeof loading === 'boolean') {\n return \n }\n return \n}\n\nexport default Button\nexport * from '@mui/material/Button'\n","import { FormControlLabel, styled } from '@mui/material'\n\nexport const FormControlCard = styled(FormControlLabel)(({ theme, checked }) => ({\n justifyContent: 'space-between',\n background: checked ? theme.palette.primary.main : theme.palette.background.paper,\n color: checked ? theme.palette.primary.contrastText : theme.palette.text.primary,\n borderRadius: '10px',\n boxShadow: theme.shadows[3],\n padding: '15px',\n margin: 0,\n}))\n","import { Chip, IconButton, Paper, styled } from '@mui/material'\n\nexport const Container = styled(Paper)({\n position: 'absolute' as const,\n top: '50%',\n left: '50%',\n transform: 'translate(-50%, -50%)',\n maxWidth: '95%',\n width: 400,\n p: 0,\n borderRadius: 20,\n overflow: 'hidden',\n})\n\nexport const CloseButton = styled(IconButton)({\n position: 'absolute',\n top: 10,\n right: 10,\n})\n\nexport const StyledChip = styled(Chip)(() => ({\n borderRadius: '7px',\n backgroundColor: ' #A196E4',\n color: 'white',\n}))\n","import {\n Box,\n Fade,\n Grow,\n Modal as MuiModal,\n Slide,\n Zoom,\n PaperProps,\n ModalProps as MuiModalProps,\n Backdrop,\n IconButton,\n} from '@mui/material'\nimport { TransitionProps as MuiTransitionProps } from '@mui/material/transitions'\nimport CloseIcon from '@mui/icons-material/Close'\nimport { CloseButton, Container } from './modal.styles'\nimport React from 'react'\n\nexport type ModalProps = MuiModalProps & {\n paperProps?: PaperProps\n showCloseBtn?: boolean\n transition?: string | undefined\n onClose: React.MouseEventHandler\n}\n\nconst Modal: React.FC = (props) => {\n const {\n open,\n onClose,\n children,\n paperProps,\n showCloseBtn = true,\n transition = 'fade',\n ...restProps\n } = props\n return (\n \n \n \n {showCloseBtn && (\n \n \n \n )}\n {children}\n \n \n \n )\n}\n\ninterface TransitionProps extends MuiTransitionProps {\n transition: string | undefined\n children: React.ReactNode\n in: boolean\n}\n\nconst Transition = React.forwardRef((props, ref) => {\n const { transition, children, in: inProp, ...restProps } = props\n if (transition === 'fade') {\n return (\n \n {children}\n \n )\n }\n if (transition === 'grow') {\n return (\n \n {children}\n \n )\n }\n if (transition === 'zoom') {\n return (\n \n {children}\n \n )\n }\n if (transition === 'slide') {\n return (\n \n {children}\n \n )\n }\n return {children}\n})\n\nModal.displayName = 'Modal'\nTransition.displayName = 'Transition'\n\nexport default Modal\nexport * from '@mui/material/Modal'\n","import { SelectProps } from '@mui/material'\nimport { Controller } from '@lib/form'\nimport Select from '@mui/material/Select'\n\ntype ControllerSelectProps = SelectProps & {\n control?: any\n}\n\nconst ControllerSelect: React.FC = (props) => {\n const { name, control, ...restProps } = props\n if (Boolean(control) && typeof name === 'string') {\n return (\n {\n // console.log(args)\n return \n}\n\nexport default ControllerSelect\nexport * from '@mui/material/Select'\n","import React from 'react'\nimport Slider, { SliderProps } from '@mui/material/Slider'\nimport { Controller } from '@lib/form'\n\ntype ControllerSliderProps = SliderProps & {\n control?: any\n}\n\nconst ControllerSlider: React.FC = React.forwardRef((props, ref) => {\n const { name, control, ...restProps } = props\n if (Boolean(control) && typeof name === 'string') {\n return (\n {\n return \n }}\n />\n )\n }\n return \n})\n\nControllerSlider.displayName = 'ControllerSlider'\n\nexport default ControllerSlider\nexport * from '@mui/material/Slider'\n","import { styled, SwitchProps, Switch as SwitchMui } from '@mui/material'\nimport React from 'react'\nimport { Controller } from '@lib/form'\n\ntype ControllerSwitchProps = SwitchProps & {\n control?: any\n}\n\nconst Switch = styled(SwitchMui)(({ theme }) => ({\n width: 28,\n height: 16,\n padding: 0,\n display: 'flex',\n '&:active': {\n '& .MuiSwitch-thumb': {\n width: 15,\n },\n '& .MuiSwitch-switchBase.Mui-checked': {\n transform: 'translateX(9px)',\n },\n },\n '& .MuiSwitch-switchBase': {\n padding: 2,\n '&.Mui-checked': {\n transform: 'translateX(12px)',\n color: '#fff',\n '& + .MuiSwitch-track': {\n opacity: 1,\n backgroundColor: theme.palette.mode === 'dark' ? '#177ddc' : '#1890ff',\n },\n },\n },\n '& .MuiSwitch-thumb': {\n boxShadow: '0 2px 4px 0 rgb(0 35 11 / 20%)',\n width: 12,\n height: 12,\n borderRadius: 6,\n transition: theme.transitions.create(['width'], {\n duration: 200,\n }),\n },\n '& .MuiSwitch-track': {\n borderRadius: 16 / 2,\n opacity: 1,\n backgroundColor: theme.palette.mode === 'dark' ? 'rgba(255,255,255,.35)' : 'rgba(0,0,0,.25)',\n boxSizing: 'border-box',\n },\n}))\n\nconst ControllerSwitch: React.FC = React.forwardRef((props, ref) => {\n const { name, control, ...restProps } = props\n if (Boolean(control) && typeof name === 'string') {\n return (\n {\n return \n }}\n />\n )\n }\n return \n})\n\nControllerSwitch.displayName = 'ControllerSwitch'\n\nexport default ControllerSwitch\nexport * from '@mui/material/Switch'\n","import { Controller } from '@lib/form'\nimport TextField, { TextFieldProps } from '@mui/material/TextField'\nimport React from 'react'\n// import { TextField } from \"./text-field.styles\"\n\ntype ControllerTextFieldProps = TextFieldProps & {\n control?: any\n}\n\nconst ControllerTextField: React.FC = React.forwardRef((props, ref) => {\n const { variant = 'outlined', name, control, ...restProps } = props\n if (Boolean(control) && typeof name === 'string') {\n return (\n {\n return (\n \n )\n }}\n />\n )\n }\n return \n})\n\nControllerTextField.displayName = 'ControllerTextField'\nexport default ControllerTextField\nexport * from '@mui/material/TextField'\n","import {\n Button as ButtonMui,\n Container as ContainerMui,\n styled,\n Typography as MuiTypography,\n Box,\n} from '@mui/material'\n\nexport const Button = styled(ButtonMui)({\n marginTop: '50px',\n marginBottom: '100px',\n background: '#99E2FF',\n color: '#000',\n ':hover': { background: '#75AFC6' },\n})\n\nexport const Container = styled(ContainerMui)({\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n})\nexport const ContainerBottom = styled(Box)({\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n width: '100%',\n marginRight: 'auto',\n marginLeft: 'auto',\n paddingRight: ' 2rem' /* 32px */,\n paddingLeft: '2rem' /* 32px */,\n maxWidth: '1400px',\n})\n\nexport const Typography = styled(MuiTypography)({\n fontFamily: ' sans-serif',\n color: '#c5c6c9',\n fontSize: '14px',\n})\n","import { Box, Divider, Stack, Link as MuiLink } from '@mui/material'\nimport { Link } from 'react-router-dom'\nimport { PRIVACY_POLICY, TERMS_OF_USE } from '@common/constants/routes'\nimport { Typography, ContainerBottom } from './footer.styles'\n\nconst Footer = () => {\n return (\n \n \n \n \n All rights reserved ©{' '}\n \n iSpeak\n {' '}\n 2024.\n \n \n \n {[\n {\n label: 'Terms of Use',\n to: TERMS_OF_USE,\n },\n {\n label: 'Privacy Policy',\n to: PRIVACY_POLICY,\n },\n // { label: t('footer.blog', 'Blog'), to: BLOG, external: true },\n // {\n // label: t('footer.schools', 'Schools'),\n // to: FOR_SCHOOLS,\n // external: true,\n // },\n ].map((link, index) => (\n \n {link.label}\n \n ))}\n \n {/* \n \n \n Upgrade your account\n \n */}\n \n \n \n )\n}\n\nexport default Footer\n","import { ThemeOptions } from '@common/utils/styles'\n\nconst globalTheme: ThemeOptions = {\n typography: {\n fontFamily: \"'Roboto', 'Poppins', sans-serif\",\n fontSize: 14,\n h1: {\n fontWeight: 500,\n fontSize: '70px',\n },\n h2: {\n fontWeight: 500,\n fontSize: '60px',\n },\n h3: {\n fontWeight: 400,\n fontSize: '50px',\n },\n h4: {\n fontWeight: 400,\n fontSize: '35px',\n },\n h5: {\n fontWeight: 400,\n fontSize: '25px',\n },\n h6: {\n fontWeight: 400,\n fontSize: '25px',\n },\n body1: {\n fontWeight: 400,\n },\n body2: {\n fontWeight: 400,\n },\n },\n components: {\n MuiButton: {\n styleOverrides: {\n root: {\n fontWeight: 400,\n textTransform: 'capitalize',\n borderRadius: '0px !important',\n },\n sizeSmall: {\n // borderRadius: \"22px\",\n },\n sizeLarge: {\n borderRadius: '20px',\n fontSize: '26px',\n padding: '6px 30px',\n },\n },\n },\n MuiButtonBase: {\n styleOverrides: {\n root: {\n borderRadius: '0px !important',\n },\n },\n },\n MuiPaper: {\n styleOverrides: {\n root: {\n borderRadius: '0px !important',\n },\n },\n },\n MuiList: {\n styleOverrides: {\n root: {\n borderRadius: '0px !important',\n },\n },\n },\n MuiSkeleton: {\n styleOverrides: {\n root: {\n borderRadius: '0px !important',\n },\n },\n },\n MuiCssBaseline: {\n styleOverrides: {\n '.MuiBox-root': { borderRadius: '0px !important' },\n '.MuiAvatar-root': {\n color: 'black !important',\n },\n input: { borderRadius: '0px !important' },\n '*::-webkit-scrollbar': {\n height: '10px',\n width: '7px',\n backgroundColor: 'rgba(0, 24, 53, 0.5)',\n },\n '*::-webkit-scrollbar-track': {\n boxShadow: 'inset 0 0 6px rgba(80, 80, 80, 0.1)',\n },\n '*::-webkit-scrollbar-thumb': {\n borderRadius: '5px',\n backgroundColor: 'rgba(255, 255, 255, 0.5)',\n },\n },\n },\n },\n}\n\nexport default globalTheme\n","import { createTheme, responsiveFontSizes } from '@common/utils/styles'\nimport globalTheme from './unsw-global-theme'\n\nconst lightTheme = createTheme({\n ...globalTheme,\n palette: {\n mode: 'light',\n primary: {\n main: '#000',\n contrastText: '#fff',\n },\n secondary: { main: '#3f61c4', contrastText: '#000' },\n tertiary: { main: '#ff635d', contrastText: '#fff' },\n dark: { main: '#010101', dark: 'rgb(40,40,40)', contrastText: '#fff' },\n light: {\n main: '#EBECED',\n light: '#EBECED',\n dark: 'rgb(150,150,150)',\n contrastText: '#010101',\n },\n neutral: {\n main: 'rgb(70,70,70)',\n contrastText: '#fff',\n },\n background: {\n default: '#ffdc00',\n },\n icons: {\n main: '#2A2F41',\n dark: '#1d202d',\n light: '#404761',\n contrastText: '#ffffff',\n },\n },\n components: {\n ...globalTheme.components,\n },\n})\n\nexport default responsiveFontSizes(lightTheme)\n","import React from 'react'\n\nconst HeaderPlaceholder = () => {\n // TODO fill it with skeletons\n return
\n}\n\nexport default HeaderPlaceholder\n","import { lazy, Suspense } from 'react'\nimport { Box } from '@common/components'\nimport { Outlet } from '@lib/router'\nimport { CssBaseline, GlobalStyles, ThemeProvider } from '@common/utils/styles'\nimport Footer from '../footer'\nimport lightThemeUnsw from '@styles/themes/unsw-light-theme'\nimport HeaderPlaceholder from '../header/placeholder'\nimport ModulesChecker from '@features/modules-checker'\n\nconst Header = lazy(() => import('../header'))\n\nconst AppLayout: React.FC = () => {\n return (\n \n \n \n }>\n
\n \n \n \n \n