@magmamath/students-features 1.8.4 → 1.8.6-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commonjs/features/chatbot/components/ChatInput/FreeText/ChatTextInput.js.map +1 -1
- package/dist/commonjs/features/profile/Profile.js +90 -0
- package/dist/commonjs/features/profile/Profile.js.map +1 -0
- package/dist/commonjs/features/profile/components/actions/ProfileActions.js +70 -0
- package/dist/commonjs/features/profile/components/actions/ProfileActions.js.map +1 -0
- package/dist/commonjs/features/profile/components/cards/ProfileCard.js +57 -0
- package/dist/commonjs/features/profile/components/cards/ProfileCard.js.map +1 -0
- package/dist/commonjs/features/profile/components/info/AccountInfoCard.js +91 -0
- package/dist/commonjs/features/profile/components/info/AccountInfoCard.js.map +1 -0
- package/dist/commonjs/features/profile/components/modals/JoinClassModal.js +190 -0
- package/dist/commonjs/features/profile/components/modals/JoinClassModal.js.map +1 -0
- package/dist/commonjs/features/profile/components/modals/LogoutConfirmModal.js +61 -0
- package/dist/commonjs/features/profile/components/modals/LogoutConfirmModal.js.map +1 -0
- package/dist/commonjs/features/profile/components/modals/TranslationLanguageModal.js +128 -0
- package/dist/commonjs/features/profile/components/modals/TranslationLanguageModal.js.map +1 -0
- package/dist/commonjs/features/profile/components/settings/LanguageSettingsCard.js +22 -0
- package/dist/commonjs/features/profile/components/settings/LanguageSettingsCard.js.map +1 -0
- package/dist/commonjs/features/profile/components/settings/PreferencesCard.js +69 -0
- package/dist/commonjs/features/profile/components/settings/PreferencesCard.js.map +1 -0
- package/dist/commonjs/features/profile/components/settings/SettingRow.js +48 -0
- package/dist/commonjs/features/profile/components/settings/SettingRow.js.map +1 -0
- package/dist/commonjs/features/profile/components/settings/TextSettingsCard.js +77 -0
- package/dist/commonjs/features/profile/components/settings/TextSettingsCard.js.map +1 -0
- package/dist/commonjs/features/profile/components/settings/TextSizeSlider.js +119 -0
- package/dist/commonjs/features/profile/components/settings/TextSizeSlider.js.map +1 -0
- package/dist/commonjs/features/profile/components/settings/TextToSpeechRow.js +37 -0
- package/dist/commonjs/features/profile/components/settings/TextToSpeechRow.js.map +1 -0
- package/dist/commonjs/features/profile/components/settings/TranslationLanguageRow.js +62 -0
- package/dist/commonjs/features/profile/components/settings/TranslationLanguageRow.js.map +1 -0
- package/dist/commonjs/features/profile/context/ProfileContext.js +18 -0
- package/dist/commonjs/features/profile/context/ProfileContext.js.map +1 -0
- package/dist/commonjs/features/profile/index.js +80 -0
- package/dist/commonjs/features/profile/index.js.map +1 -0
- package/dist/commonjs/features/profile/model/ProfileApi.js +15 -0
- package/dist/commonjs/features/profile/model/ProfileApi.js.map +1 -0
- package/dist/commonjs/features/profile/model/ProfileJoinClassModel.js +60 -0
- package/dist/commonjs/features/profile/model/ProfileJoinClassModel.js.map +1 -0
- package/dist/commonjs/features/profile/model/ProfileLanguageModel.js +30 -0
- package/dist/commonjs/features/profile/model/ProfileLanguageModel.js.map +1 -0
- package/dist/commonjs/features/profile/model/ProfileModel.js +53 -0
- package/dist/commonjs/features/profile/model/ProfileModel.js.map +1 -0
- package/dist/commonjs/features/profile/model/profileModal.types.js +6 -0
- package/dist/commonjs/features/profile/model/profileModal.types.js.map +1 -0
- package/dist/commonjs/features/profile/shared/JoinClassError.js +16 -0
- package/dist/commonjs/features/profile/shared/JoinClassError.js.map +1 -0
- package/dist/commonjs/features/profile/shared/profile.constants.js +29 -0
- package/dist/commonjs/features/profile/shared/profile.constants.js.map +1 -0
- package/dist/commonjs/features/profile/shared/profile.helpers.js +40 -0
- package/dist/commonjs/features/profile/shared/profile.helpers.js.map +1 -0
- package/dist/commonjs/features/profile/shared/profile.types.js +6 -0
- package/dist/commonjs/features/profile/shared/profile.types.js.map +1 -0
- package/dist/commonjs/index.js +12 -0
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/shared/hooks/useKeyboardOffset.js +54 -0
- package/dist/commonjs/shared/hooks/useKeyboardOffset.js.map +1 -0
- package/dist/module/features/chatbot/components/ChatInput/FreeText/ChatTextInput.js.map +1 -1
- package/dist/module/features/profile/Profile.js +84 -0
- package/dist/module/features/profile/Profile.js.map +1 -0
- package/dist/module/features/profile/components/actions/ProfileActions.js +64 -0
- package/dist/module/features/profile/components/actions/ProfileActions.js.map +1 -0
- package/dist/module/features/profile/components/cards/ProfileCard.js +51 -0
- package/dist/module/features/profile/components/cards/ProfileCard.js.map +1 -0
- package/dist/module/features/profile/components/info/AccountInfoCard.js +85 -0
- package/dist/module/features/profile/components/info/AccountInfoCard.js.map +1 -0
- package/dist/module/features/profile/components/modals/JoinClassModal.js +183 -0
- package/dist/module/features/profile/components/modals/JoinClassModal.js.map +1 -0
- package/dist/module/features/profile/components/modals/LogoutConfirmModal.js +55 -0
- package/dist/module/features/profile/components/modals/LogoutConfirmModal.js.map +1 -0
- package/dist/module/features/profile/components/modals/TranslationLanguageModal.js +122 -0
- package/dist/module/features/profile/components/modals/TranslationLanguageModal.js.map +1 -0
- package/dist/module/features/profile/components/settings/LanguageSettingsCard.js +16 -0
- package/dist/module/features/profile/components/settings/LanguageSettingsCard.js.map +1 -0
- package/dist/module/features/profile/components/settings/PreferencesCard.js +63 -0
- package/dist/module/features/profile/components/settings/PreferencesCard.js.map +1 -0
- package/dist/module/features/profile/components/settings/SettingRow.js +42 -0
- package/dist/module/features/profile/components/settings/SettingRow.js.map +1 -0
- package/dist/module/features/profile/components/settings/TextSettingsCard.js +71 -0
- package/dist/module/features/profile/components/settings/TextSettingsCard.js.map +1 -0
- package/dist/module/features/profile/components/settings/TextSizeSlider.js +112 -0
- package/dist/module/features/profile/components/settings/TextSizeSlider.js.map +1 -0
- package/dist/module/features/profile/components/settings/TextToSpeechRow.js +31 -0
- package/dist/module/features/profile/components/settings/TextToSpeechRow.js.map +1 -0
- package/dist/module/features/profile/components/settings/TranslationLanguageRow.js +56 -0
- package/dist/module/features/profile/components/settings/TranslationLanguageRow.js.map +1 -0
- package/dist/module/features/profile/context/ProfileContext.js +13 -0
- package/dist/module/features/profile/context/ProfileContext.js.map +1 -0
- package/dist/module/features/profile/index.js +11 -0
- package/dist/module/features/profile/index.js.map +1 -0
- package/dist/module/features/profile/model/ProfileApi.js +10 -0
- package/dist/module/features/profile/model/ProfileApi.js.map +1 -0
- package/dist/module/features/profile/model/ProfileJoinClassModel.js +55 -0
- package/dist/module/features/profile/model/ProfileJoinClassModel.js.map +1 -0
- package/dist/module/features/profile/model/ProfileLanguageModel.js +25 -0
- package/dist/module/features/profile/model/ProfileLanguageModel.js.map +1 -0
- package/dist/module/features/profile/model/ProfileModel.js +48 -0
- package/dist/module/features/profile/model/ProfileModel.js.map +1 -0
- package/dist/module/features/profile/model/profileModal.types.js +4 -0
- package/dist/module/features/profile/model/profileModal.types.js.map +1 -0
- package/dist/module/features/profile/shared/JoinClassError.js +11 -0
- package/dist/module/features/profile/shared/JoinClassError.js.map +1 -0
- package/dist/module/features/profile/shared/profile.constants.js +25 -0
- package/dist/module/features/profile/shared/profile.constants.js.map +1 -0
- package/dist/module/features/profile/shared/profile.helpers.js +32 -0
- package/dist/module/features/profile/shared/profile.helpers.js.map +1 -0
- package/dist/module/features/profile/shared/profile.types.js +4 -0
- package/dist/module/features/profile/shared/profile.types.js.map +1 -0
- package/dist/module/index.js +1 -0
- package/dist/module/index.js.map +1 -1
- package/dist/module/shared/hooks/useKeyboardOffset.js +49 -0
- package/dist/module/shared/hooks/useKeyboardOffset.js.map +1 -0
- package/dist/typescript/commonjs/features/chatbot/components/ChatInput/FreeText/ChatTextInput.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/profile/Profile.d.ts +6 -0
- package/dist/typescript/commonjs/features/profile/Profile.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/__tests__/ProfileModel.test.d.ts +2 -0
- package/dist/typescript/commonjs/features/profile/__tests__/ProfileModel.test.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/__tests__/profile.helpers.test.d.ts +2 -0
- package/dist/typescript/commonjs/features/profile/__tests__/profile.helpers.test.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/components/actions/ProfileActions.d.ts +3 -0
- package/dist/typescript/commonjs/features/profile/components/actions/ProfileActions.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/components/cards/ProfileCard.d.ts +10 -0
- package/dist/typescript/commonjs/features/profile/components/cards/ProfileCard.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/components/info/AccountInfoCard.d.ts +3 -0
- package/dist/typescript/commonjs/features/profile/components/info/AccountInfoCard.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/components/modals/JoinClassModal.d.ts +4 -0
- package/dist/typescript/commonjs/features/profile/components/modals/JoinClassModal.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/components/modals/LogoutConfirmModal.d.ts +4 -0
- package/dist/typescript/commonjs/features/profile/components/modals/LogoutConfirmModal.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/components/modals/TranslationLanguageModal.d.ts +4 -0
- package/dist/typescript/commonjs/features/profile/components/modals/TranslationLanguageModal.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/components/settings/LanguageSettingsCard.d.ts +3 -0
- package/dist/typescript/commonjs/features/profile/components/settings/LanguageSettingsCard.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/components/settings/PreferencesCard.d.ts +3 -0
- package/dist/typescript/commonjs/features/profile/components/settings/PreferencesCard.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/components/settings/SettingRow.d.ts +11 -0
- package/dist/typescript/commonjs/features/profile/components/settings/SettingRow.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/components/settings/TextSettingsCard.d.ts +3 -0
- package/dist/typescript/commonjs/features/profile/components/settings/TextSettingsCard.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/components/settings/TextSizeSlider.d.ts +8 -0
- package/dist/typescript/commonjs/features/profile/components/settings/TextSizeSlider.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/components/settings/TextToSpeechRow.d.ts +3 -0
- package/dist/typescript/commonjs/features/profile/components/settings/TextToSpeechRow.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/components/settings/TranslationLanguageRow.d.ts +3 -0
- package/dist/typescript/commonjs/features/profile/components/settings/TranslationLanguageRow.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/context/ProfileContext.d.ts +13 -0
- package/dist/typescript/commonjs/features/profile/context/ProfileContext.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/index.d.ts +12 -0
- package/dist/typescript/commonjs/features/profile/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/model/ProfileApi.d.ts +11 -0
- package/dist/typescript/commonjs/features/profile/model/ProfileApi.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/model/ProfileJoinClassModel.d.ts +14 -0
- package/dist/typescript/commonjs/features/profile/model/ProfileJoinClassModel.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/model/ProfileLanguageModel.d.ts +13 -0
- package/dist/typescript/commonjs/features/profile/model/ProfileLanguageModel.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/model/ProfileModel.d.ts +26 -0
- package/dist/typescript/commonjs/features/profile/model/ProfileModel.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/model/profileModal.types.d.ts +14 -0
- package/dist/typescript/commonjs/features/profile/model/profileModal.types.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/shared/JoinClassError.d.ts +5 -0
- package/dist/typescript/commonjs/features/profile/shared/JoinClassError.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/shared/profile.constants.d.ts +20 -0
- package/dist/typescript/commonjs/features/profile/shared/profile.constants.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/shared/profile.helpers.d.ts +6 -0
- package/dist/typescript/commonjs/features/profile/shared/profile.helpers.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/profile/shared/profile.types.d.ts +27 -0
- package/dist/typescript/commonjs/features/profile/shared/profile.types.d.ts.map +1 -0
- package/dist/typescript/commonjs/index.d.ts +1 -0
- package/dist/typescript/commonjs/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/hooks/useKeyboardOffset.d.ts +11 -0
- package/dist/typescript/commonjs/shared/hooks/useKeyboardOffset.d.ts.map +1 -0
- package/dist/typescript/module/features/chatbot/components/ChatInput/FreeText/ChatTextInput.d.ts.map +1 -1
- package/dist/typescript/module/features/profile/Profile.d.ts +6 -0
- package/dist/typescript/module/features/profile/Profile.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/__tests__/ProfileModel.test.d.ts +2 -0
- package/dist/typescript/module/features/profile/__tests__/ProfileModel.test.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/__tests__/profile.helpers.test.d.ts +2 -0
- package/dist/typescript/module/features/profile/__tests__/profile.helpers.test.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/components/actions/ProfileActions.d.ts +3 -0
- package/dist/typescript/module/features/profile/components/actions/ProfileActions.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/components/cards/ProfileCard.d.ts +10 -0
- package/dist/typescript/module/features/profile/components/cards/ProfileCard.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/components/info/AccountInfoCard.d.ts +3 -0
- package/dist/typescript/module/features/profile/components/info/AccountInfoCard.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/components/modals/JoinClassModal.d.ts +4 -0
- package/dist/typescript/module/features/profile/components/modals/JoinClassModal.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/components/modals/LogoutConfirmModal.d.ts +4 -0
- package/dist/typescript/module/features/profile/components/modals/LogoutConfirmModal.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/components/modals/TranslationLanguageModal.d.ts +4 -0
- package/dist/typescript/module/features/profile/components/modals/TranslationLanguageModal.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/components/settings/LanguageSettingsCard.d.ts +3 -0
- package/dist/typescript/module/features/profile/components/settings/LanguageSettingsCard.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/components/settings/PreferencesCard.d.ts +3 -0
- package/dist/typescript/module/features/profile/components/settings/PreferencesCard.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/components/settings/SettingRow.d.ts +11 -0
- package/dist/typescript/module/features/profile/components/settings/SettingRow.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/components/settings/TextSettingsCard.d.ts +3 -0
- package/dist/typescript/module/features/profile/components/settings/TextSettingsCard.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/components/settings/TextSizeSlider.d.ts +8 -0
- package/dist/typescript/module/features/profile/components/settings/TextSizeSlider.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/components/settings/TextToSpeechRow.d.ts +3 -0
- package/dist/typescript/module/features/profile/components/settings/TextToSpeechRow.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/components/settings/TranslationLanguageRow.d.ts +3 -0
- package/dist/typescript/module/features/profile/components/settings/TranslationLanguageRow.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/context/ProfileContext.d.ts +13 -0
- package/dist/typescript/module/features/profile/context/ProfileContext.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/index.d.ts +12 -0
- package/dist/typescript/module/features/profile/index.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/model/ProfileApi.d.ts +11 -0
- package/dist/typescript/module/features/profile/model/ProfileApi.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/model/ProfileJoinClassModel.d.ts +14 -0
- package/dist/typescript/module/features/profile/model/ProfileJoinClassModel.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/model/ProfileLanguageModel.d.ts +13 -0
- package/dist/typescript/module/features/profile/model/ProfileLanguageModel.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/model/ProfileModel.d.ts +26 -0
- package/dist/typescript/module/features/profile/model/ProfileModel.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/model/profileModal.types.d.ts +14 -0
- package/dist/typescript/module/features/profile/model/profileModal.types.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/shared/JoinClassError.d.ts +5 -0
- package/dist/typescript/module/features/profile/shared/JoinClassError.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/shared/profile.constants.d.ts +20 -0
- package/dist/typescript/module/features/profile/shared/profile.constants.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/shared/profile.helpers.d.ts +6 -0
- package/dist/typescript/module/features/profile/shared/profile.helpers.d.ts.map +1 -0
- package/dist/typescript/module/features/profile/shared/profile.types.d.ts +27 -0
- package/dist/typescript/module/features/profile/shared/profile.types.d.ts.map +1 -0
- package/dist/typescript/module/index.d.ts +1 -0
- package/dist/typescript/module/index.d.ts.map +1 -1
- package/dist/typescript/module/shared/hooks/useKeyboardOffset.d.ts +11 -0
- package/dist/typescript/module/shared/hooks/useKeyboardOffset.d.ts.map +1 -0
- package/package.json +4 -2
- package/src/features/chatbot/components/ChatInput/FreeText/ChatTextInput.tsx +0 -1
- package/src/features/profile/Profile.tsx +83 -0
- package/src/features/profile/__tests__/ProfileModel.test.ts +99 -0
- package/src/features/profile/__tests__/profile.helpers.test.ts +57 -0
- package/src/features/profile/components/actions/ProfileActions.tsx +68 -0
- package/src/features/profile/components/cards/ProfileCard.tsx +53 -0
- package/src/features/profile/components/info/AccountInfoCard.tsx +74 -0
- package/src/features/profile/components/modals/JoinClassModal.tsx +180 -0
- package/src/features/profile/components/modals/LogoutConfirmModal.tsx +64 -0
- package/src/features/profile/components/modals/TranslationLanguageModal.tsx +126 -0
- package/src/features/profile/components/settings/LanguageSettingsCard.tsx +16 -0
- package/src/features/profile/components/settings/PreferencesCard.tsx +67 -0
- package/src/features/profile/components/settings/SettingRow.tsx +42 -0
- package/src/features/profile/components/settings/TextSettingsCard.tsx +64 -0
- package/src/features/profile/components/settings/TextSizeSlider.tsx +117 -0
- package/src/features/profile/components/settings/TextToSpeechRow.tsx +29 -0
- package/src/features/profile/components/settings/TranslationLanguageRow.tsx +60 -0
- package/src/features/profile/context/ProfileContext.tsx +24 -0
- package/src/features/profile/index.ts +11 -0
- package/src/features/profile/model/ProfileApi.ts +23 -0
- package/src/features/profile/model/ProfileJoinClassModel.ts +58 -0
- package/src/features/profile/model/ProfileLanguageModel.ts +26 -0
- package/src/features/profile/model/ProfileModel.ts +57 -0
- package/src/features/profile/model/profileModal.types.ts +16 -0
- package/src/features/profile/shared/JoinClassError.ts +7 -0
- package/src/features/profile/shared/profile.constants.ts +23 -0
- package/src/features/profile/shared/profile.helpers.ts +36 -0
- package/src/features/profile/shared/profile.types.ts +34 -0
- package/src/i18n/.generated/schema.json +9 -1
- package/src/index.ts +1 -0
- package/src/shared/hooks/useKeyboardOffset.ts +57 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNativeReanimated","_reactNative","_reactNativeUi","_studentsFeatures","_useKeyboard","_constants","_SendMessageButton","_studentsQa","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","MAX_AVAILABLE_MESSAGE_LENGTH","COMPACT_WIDTH","FULL_WIDTH","IS_WEB","ANIMATION_DURATION","ChatTextInput","value","submitDisabled","onSubmit","onChangeText","onBlur","onFocus","colorScheme","ColorScheme","Blue","placeholder","inputRef","useRef","isFocused","setIsFocused","useState","widthSv","useSharedValue","animatedStyle","useAnimatedStyle","width","handleInputChange","text","length","hasText","trim","isExpanded","shouldCollapseInput","shouldExpandInput","withTiming","duration","handleSendMessage","current","focus","handleOnFocus","handleOnBlur","useKeyBoard","enabled","callback","event","key","KeyboardKeys","ENTER","jsxs","View","style","styles","inputWrapper","children","jsx","TextInput","ref","placeholderTextColor","COLORS","NEUTRAL_5","input","testID","TEST_IDS","OPEN_CHAT_TEXT_INPUT","SendMessageButton","onPress","disabled","exports","StyleSheet","create","container","position","alignItems","justifyContent","height","zIndex","left","flexDirection","borderWidth","borderColor","borderRadius","backgroundColor","NEUTRAL_1","paddingHorizontal","SPACING","paddingVertical","elevation","shadowColor","shadowOffset","shadowOpacity","shadowRadius","flex","fontSize","minWidth","minHeight","fontWeight","fontFamily","FONT_FAMILY","buenosAires","Platform","OS","outlineStyle","arrowWrapper","marginLeft"],"sourceRoot":"../../../../../../../src","sources":["features/chatbot/components/ChatInput/FreeText/ChatTextInput.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAF,uBAAA,CAAAC,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AAOA,IAAAG,cAAA,GAAAH,OAAA;
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNativeReanimated","_reactNative","_reactNativeUi","_studentsFeatures","_useKeyboard","_constants","_SendMessageButton","_studentsQa","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","MAX_AVAILABLE_MESSAGE_LENGTH","COMPACT_WIDTH","FULL_WIDTH","IS_WEB","ANIMATION_DURATION","ChatTextInput","value","submitDisabled","onSubmit","onChangeText","onBlur","onFocus","colorScheme","ColorScheme","Blue","placeholder","inputRef","useRef","isFocused","setIsFocused","useState","widthSv","useSharedValue","animatedStyle","useAnimatedStyle","width","handleInputChange","text","length","hasText","trim","isExpanded","shouldCollapseInput","shouldExpandInput","withTiming","duration","handleSendMessage","current","focus","handleOnFocus","handleOnBlur","useKeyBoard","enabled","callback","event","key","KeyboardKeys","ENTER","jsxs","View","style","styles","inputWrapper","children","jsx","TextInput","ref","placeholderTextColor","COLORS","NEUTRAL_5","input","testID","TEST_IDS","OPEN_CHAT_TEXT_INPUT","SendMessageButton","onPress","disabled","exports","StyleSheet","create","container","position","alignItems","justifyContent","height","zIndex","left","flexDirection","borderWidth","borderColor","borderRadius","backgroundColor","NEUTRAL_1","paddingHorizontal","SPACING","paddingVertical","elevation","shadowColor","shadowOffset","shadowOpacity","shadowRadius","flex","fontSize","minWidth","minHeight","fontWeight","fontFamily","FONT_FAMILY","buenosAires","Platform","OS","outlineStyle","arrowWrapper","marginLeft"],"sourceRoot":"../../../../../../../src","sources":["features/chatbot/components/ChatInput/FreeText/ChatTextInput.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAF,uBAAA,CAAAC,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AAOA,IAAAG,cAAA,GAAAH,OAAA;AACA,IAAAI,iBAAA,GAAAJ,OAAA;AACA,IAAAK,YAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AAEA,IAAAO,kBAAA,GAAAP,OAAA;AACA,IAAAQ,WAAA,GAAAR,OAAA;AAAiD,IAAAS,WAAA,GAAAT,OAAA;AAAA,SAAAU,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAZ,wBAAAY,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAA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;IAC7BqB,YAAY,EAAE,GAAG;IACjBC,eAAe,EAAEvB,qBAAM,CAACwB,SAAS;IACjCC,iBAAiB,EAAEC,sBAAO,CAAC,GAAG,CAAC;IAC/BC,eAAe,EAAED,sBAAO,CAAC,GAAG,CAAC;IAC7BE,SAAS,EAAE,CAAC;IACZC,WAAW,EAAE,MAAM;IACnBC,YAAY,EAAE;MAAE/D,KAAK,EAAE,CAAC;MAAEiD,MAAM,EAAE;IAAE,CAAC;IACrCe,aAAa,EAAE,IAAI;IACnBC,YAAY,EAAE;EAChB,CAAC;EACD9B,KAAK,EAAE;IACL+B,IAAI,EAAE,CAAC;IACPC,QAAQ,EAAE,EAAE;IACZC,QAAQ,EAAE,EAAE;IACZC,SAAS,EAAE,EAAE;IACbC,UAAU,EAAE,KAAK;IACjBC,UAAU,EAAEC,0BAAW,CAACC,WAAW;IACnCf,iBAAiB,EAAEC,sBAAO,CAAC,GAAG,CAAC;IAC/BC,eAAe,EAAED,sBAAO,CAAC,GAAG,CAAC;IAC7B,IAAIe,qBAAQ,CAACC,EAAE,KAAK,KAAK,IAAI;MAAEC,YAAY,EAAE;IAAO,CAAC;EACvD,CAAC;EACDC,YAAY,EAAE;IACZC,UAAU,EAAEnB,sBAAO,CAAC,GAAG;EACzB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Profile = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _reactNativeUi = require("@magmamath/react-native-ui");
|
|
10
|
+
var _commonConstants = require("../../shared/common.constants.js");
|
|
11
|
+
var _ProfileActions = require("./components/actions/ProfileActions.js");
|
|
12
|
+
var _AccountInfoCard = require("./components/info/AccountInfoCard.js");
|
|
13
|
+
var _LanguageSettingsCard = require("./components/settings/LanguageSettingsCard.js");
|
|
14
|
+
var _PreferencesCard = require("./components/settings/PreferencesCard.js");
|
|
15
|
+
var _TextSettingsCard = require("./components/settings/TextSettingsCard.js");
|
|
16
|
+
var _ProfileContext = require("./context/ProfileContext.js");
|
|
17
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
19
|
+
const TWO_COLUMN_BREAKPOINT = 768;
|
|
20
|
+
const COLUMN_MAX_WIDTH = 560;
|
|
21
|
+
const Profile = props => {
|
|
22
|
+
const {
|
|
23
|
+
showSolveMode,
|
|
24
|
+
versionInfo
|
|
25
|
+
} = props;
|
|
26
|
+
const {
|
|
27
|
+
width
|
|
28
|
+
} = (0, _reactNative.useWindowDimensions)();
|
|
29
|
+
const isTwoColumn = width >= TWO_COLUMN_BREAKPOINT;
|
|
30
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ProfileContext.ProfileProvider, {
|
|
31
|
+
value: props,
|
|
32
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.ScrollView, {
|
|
33
|
+
style: styles.container,
|
|
34
|
+
contentContainerStyle: styles.scroll,
|
|
35
|
+
scrollEnabled: _commonConstants.isWeb,
|
|
36
|
+
showsVerticalScrollIndicator: _commonConstants.isWeb,
|
|
37
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
38
|
+
style: [styles.columns, !isTwoColumn && styles.columnsStacked],
|
|
39
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
40
|
+
style: [styles.column, isTwoColumn ? styles.columnWide : styles.columnStacked],
|
|
41
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_LanguageSettingsCard.LanguageSettingsCard, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_TextSettingsCard.TextSettingsCard, {})]
|
|
42
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
43
|
+
style: [styles.column, isTwoColumn ? styles.columnWide : styles.columnStacked],
|
|
44
|
+
children: [showSolveMode && /*#__PURE__*/(0, _jsxRuntime.jsx)(_PreferencesCard.PreferencesCard, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_AccountInfoCard.AccountInfoCard, {})]
|
|
45
|
+
})]
|
|
46
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ProfileActions.ProfileActions, {}), versionInfo ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
47
|
+
style: styles.version,
|
|
48
|
+
children: versionInfo
|
|
49
|
+
}) : null]
|
|
50
|
+
})
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
exports.Profile = Profile;
|
|
54
|
+
const styles = _reactNative.StyleSheet.create({
|
|
55
|
+
container: {
|
|
56
|
+
backgroundColor: _reactNativeUi.COLORS.NEUTRAL_3,
|
|
57
|
+
flex: 1
|
|
58
|
+
},
|
|
59
|
+
scroll: {
|
|
60
|
+
flexGrow: 1,
|
|
61
|
+
gap: _reactNativeUi.SPACING['800'],
|
|
62
|
+
paddingHorizontal: _reactNativeUi.SPACING['800'],
|
|
63
|
+
paddingVertical: _reactNativeUi.SPACING['600']
|
|
64
|
+
},
|
|
65
|
+
columns: {
|
|
66
|
+
flexDirection: 'row',
|
|
67
|
+
gap: _reactNativeUi.SPACING['600'],
|
|
68
|
+
justifyContent: 'center',
|
|
69
|
+
width: '100%'
|
|
70
|
+
},
|
|
71
|
+
columnsStacked: {
|
|
72
|
+
alignItems: 'center',
|
|
73
|
+
flexDirection: 'column'
|
|
74
|
+
},
|
|
75
|
+
column: {
|
|
76
|
+
gap: _reactNativeUi.SPACING['600'],
|
|
77
|
+
maxWidth: COLUMN_MAX_WIDTH
|
|
78
|
+
},
|
|
79
|
+
columnWide: {
|
|
80
|
+
flex: 1
|
|
81
|
+
},
|
|
82
|
+
columnStacked: {
|
|
83
|
+
width: '100%'
|
|
84
|
+
},
|
|
85
|
+
version: {
|
|
86
|
+
alignSelf: 'flex-end',
|
|
87
|
+
marginTop: 'auto'
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
//# sourceMappingURL=Profile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeUi","_commonConstants","_ProfileActions","_AccountInfoCard","_LanguageSettingsCard","_PreferencesCard","_TextSettingsCard","_ProfileContext","_jsxRuntime","e","__esModule","default","TWO_COLUMN_BREAKPOINT","COLUMN_MAX_WIDTH","Profile","props","showSolveMode","versionInfo","width","useWindowDimensions","isTwoColumn","jsx","ProfileProvider","value","children","jsxs","ScrollView","style","styles","container","contentContainerStyle","scroll","scrollEnabled","isWeb","showsVerticalScrollIndicator","View","columns","columnsStacked","column","columnWide","columnStacked","LanguageSettingsCard","TextSettingsCard","PreferencesCard","AccountInfoCard","ProfileActions","version","exports","StyleSheet","create","backgroundColor","COLORS","NEUTRAL_3","flex","flexGrow","gap","SPACING","paddingHorizontal","paddingVertical","flexDirection","justifyContent","alignItems","maxWidth","alignSelf","marginTop"],"sourceRoot":"../../../../src","sources":["features/profile/Profile.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AAEA,IAAAG,gBAAA,GAAAH,OAAA;AACA,IAAAI,eAAA,GAAAJ,OAAA;AACA,IAAAK,gBAAA,GAAAL,OAAA;AACA,IAAAM,qBAAA,GAAAN,OAAA;AACA,IAAAO,gBAAA,GAAAP,OAAA;AACA,IAAAQ,iBAAA,GAAAR,OAAA;AACA,IAAAS,eAAA,GAAAT,OAAA;AAAoF,IAAAU,WAAA,GAAAV,OAAA;AAAA,SAAAD,uBAAAY,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,C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AG,EAAEC,sBAAO,CAAC,KAAK,CAAC;IACnBM,QAAQ,EAAEjD;EACZ,CAAC;EACD0B,UAAU,EAAE;IACVc,IAAI,EAAE;EACR,CAAC;EACDb,aAAa,EAAE;IACbtB,KAAK,EAAE;EACT,CAAC;EACD4B,OAAO,EAAE;IACPiB,SAAS,EAAE,UAAU;IACrBC,SAAS,EAAE;EACb;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ProfileActions = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _reactNativeUi = require("@magmamath/react-native-ui");
|
|
10
|
+
var _studentsQa = require("@magmamath/students-qa");
|
|
11
|
+
var _i18n = require("../../../../i18n/i18n.js");
|
|
12
|
+
var _ProfileContext = require("../../context/ProfileContext.js");
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
+
const ProfileActions = () => {
|
|
16
|
+
const t = (0, _i18n.useText)();
|
|
17
|
+
const {
|
|
18
|
+
onLogout,
|
|
19
|
+
onOpenJoinClass
|
|
20
|
+
} = (0, _ProfileContext.useProfile)();
|
|
21
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
22
|
+
style: styles.container,
|
|
23
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
24
|
+
style: styles.leftHalf,
|
|
25
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.ReanimatedButton, {
|
|
26
|
+
variant: _reactNativeUi.ButtonVariant.SECONDARY,
|
|
27
|
+
colorScheme: _reactNativeUi.ButtonColor.WHITE,
|
|
28
|
+
size: _reactNativeUi.ButtonSize.LARGE,
|
|
29
|
+
onPress: onOpenJoinClass,
|
|
30
|
+
testID: _studentsQa.TEST_IDS.JOIN_NEW_CLASS_BUTTON,
|
|
31
|
+
style: buttonStyle,
|
|
32
|
+
children: t('profile.joinNewClass')
|
|
33
|
+
})
|
|
34
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
35
|
+
style: styles.rightHalf,
|
|
36
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.ReanimatedButton, {
|
|
37
|
+
variant: _reactNativeUi.ButtonVariant.PRIMARY,
|
|
38
|
+
colorScheme: _reactNativeUi.ButtonColor.ORANGE,
|
|
39
|
+
size: _reactNativeUi.ButtonSize.LARGE,
|
|
40
|
+
onPress: onLogout,
|
|
41
|
+
testID: _studentsQa.TEST_IDS.LOGOUT_BUTTON,
|
|
42
|
+
style: buttonStyle,
|
|
43
|
+
children: t('profile.logOut')
|
|
44
|
+
})
|
|
45
|
+
})]
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
exports.ProfileActions = ProfileActions;
|
|
49
|
+
const styles = _reactNative.StyleSheet.create({
|
|
50
|
+
container: {
|
|
51
|
+
flexDirection: 'row',
|
|
52
|
+
gap: _reactNativeUi.SPACING['600'],
|
|
53
|
+
width: '100%'
|
|
54
|
+
},
|
|
55
|
+
leftHalf: {
|
|
56
|
+
alignItems: 'flex-end',
|
|
57
|
+
flex: 1
|
|
58
|
+
},
|
|
59
|
+
rightHalf: {
|
|
60
|
+
alignItems: 'flex-start',
|
|
61
|
+
flex: 1
|
|
62
|
+
},
|
|
63
|
+
text: {
|
|
64
|
+
textTransform: 'uppercase'
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
const buttonStyle = {
|
|
68
|
+
text: styles.text
|
|
69
|
+
};
|
|
70
|
+
//# sourceMappingURL=ProfileActions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeUi","_studentsQa","_i18n","_ProfileContext","_jsxRuntime","e","__esModule","default","ProfileActions","t","useText","onLogout","onOpenJoinClass","useProfile","jsxs","View","style","styles","container","children","jsx","leftHalf","ReanimatedButton","variant","ButtonVariant","SECONDARY","colorScheme","ButtonColor","WHITE","size","ButtonSize","LARGE","onPress","testID","TEST_IDS","JOIN_NEW_CLASS_BUTTON","buttonStyle","rightHalf","PRIMARY","ORANGE","LOGOUT_BUTTON","exports","StyleSheet","create","flexDirection","gap","SPACING","width","alignItems","flex","text","textTransform"],"sourceRoot":"../../../../../../src","sources":["features/profile/components/actions/ProfileActions.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AAOA,IAAAG,WAAA,GAAAH,OAAA;AAEA,IAAAI,KAAA,GAAAJ,OAAA;AACA,IAAAK,eAAA,GAAAL,OAAA;AAAyD,IAAAM,WAAA,GAAAN,OAAA;AAAA,SAAAD,uBAAAQ,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAElD,MAAMG,cAAc,GAAGA,CAAA,KAAM;EAClC,MAAMC,CAAC,GAAG,IAAAC,aAAO,EAAC,CAAC;EACnB,MAAM;IAAEC,QAAQ;IAAEC;EAAgB,CAAC,GAAG,IAAAC,0BAAU,EAAC,CAAC;EAElD,oBACE,IAAAT,WAAA,CAAAU,IAAA,EAACf,YAAA,CAAAgB,IAAI;IAACC,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAAC,QAAA,gBAC5B,IAAAf,WAAA,CAAAgB,GAAA,EAACrB,YAAA,CAAAgB,IAAI;MAACC,KAAK,EAAEC,MAAM,CAACI,QAAS;MAAAF,QAAA,eAC3B,IAAAf,WAAA,CAAAgB,GAAA,EAACpB,cAAA,CAAA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MAAMf,WAAW,GAAG;EAAEc,IAAI,EAAEjC,MAAM,CAACiC;AAAK,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ProfileCard = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _reactNativeUi = require("@magmamath/react-native-ui");
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
+
const ProfileCard = ({
|
|
13
|
+
title,
|
|
14
|
+
children,
|
|
15
|
+
style
|
|
16
|
+
}) => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
17
|
+
style: [styles.card, style],
|
|
18
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
19
|
+
style: styles.header,
|
|
20
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.Typography, {
|
|
21
|
+
variant: _reactNativeUi.HeadingVariants.H9,
|
|
22
|
+
style: styles.title,
|
|
23
|
+
children: title
|
|
24
|
+
})
|
|
25
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
26
|
+
style: styles.divider
|
|
27
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
28
|
+
style: styles.body,
|
|
29
|
+
children: children
|
|
30
|
+
})]
|
|
31
|
+
});
|
|
32
|
+
exports.ProfileCard = ProfileCard;
|
|
33
|
+
const styles = _reactNative.StyleSheet.create({
|
|
34
|
+
card: {
|
|
35
|
+
backgroundColor: _reactNativeUi.COLORS.NEUTRAL_1,
|
|
36
|
+
borderRadius: _reactNativeUi.BORDER_RADIUS['400'],
|
|
37
|
+
padding: _reactNativeUi.SPACING['400'],
|
|
38
|
+
..._reactNativeUi.SHADOWS['1']
|
|
39
|
+
},
|
|
40
|
+
header: {
|
|
41
|
+
paddingLeft: _reactNativeUi.SPACING['200']
|
|
42
|
+
},
|
|
43
|
+
title: {
|
|
44
|
+
color: _reactNativeUi.COLORS.NEUTRAL_7
|
|
45
|
+
},
|
|
46
|
+
divider: {
|
|
47
|
+
backgroundColor: _reactNativeUi.COLORS.NEUTRAL_3,
|
|
48
|
+
height: 1,
|
|
49
|
+
marginHorizontal: _reactNativeUi.SPACING['100'],
|
|
50
|
+
marginVertical: _reactNativeUi.SPACING['200']
|
|
51
|
+
},
|
|
52
|
+
body: {
|
|
53
|
+
gap: _reactNativeUi.SPACING['400'],
|
|
54
|
+
justifyContent: 'center'
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
//# sourceMappingURL=ProfileCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeUi","_jsxRuntime","e","__esModule","default","ProfileCard","title","children","style","jsxs","View","styles","card","jsx","header","Typography","variant","HeadingVariants","H9","divider","body","exports","StyleSheet","create","backgroundColor","COLORS","NEUTRAL_1","borderRadius","BORDER_RADIUS","padding","SPACING","SHADOWS","paddingLeft","color","NEUTRAL_7","NEUTRAL_3","height","marginHorizontal","marginVertical","gap","justifyContent"],"sourceRoot":"../../../../../../src","sources":["features/profile/components/cards/ProfileCard.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AAOmC,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAD,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAQ5B,MAAMG,WAAW,GAAGA,CAAC;EAA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,CAAC;IACTC,gBAAgB,EAAEP,sBAAO,CAAC,KAAK,CAAC;IAChCQ,cAAc,EAAER,sBAAO,CAAC,KAAK;EAC/B,CAAC;EACDV,IAAI,EAAE;IACJmB,GAAG,EAAET,sBAAO,CAAC,KAAK,CAAC;IACnBU,cAAc,EAAE;EAClB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.AccountInfoCard = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _effectorReact = require("effector-react");
|
|
9
|
+
var _reactNative = require("react-native");
|
|
10
|
+
var _reactNativeUi = require("@magmamath/react-native-ui");
|
|
11
|
+
var _i18n = require("../../../../i18n/i18n.js");
|
|
12
|
+
var _ProfileContext = require("../../context/ProfileContext.js");
|
|
13
|
+
var _ProfileCard = require("../cards/ProfileCard.js");
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
|
+
const NOTE_ICON_SIZE = 20;
|
|
17
|
+
const InfoField = ({
|
|
18
|
+
label,
|
|
19
|
+
value
|
|
20
|
+
}) => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
21
|
+
style: styles.field,
|
|
22
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.Typography, {
|
|
23
|
+
variant: _reactNativeUi.HeadingVariants.H8,
|
|
24
|
+
style: styles.label,
|
|
25
|
+
children: label
|
|
26
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.Typography, {
|
|
27
|
+
variant: _reactNativeUi.HeadingVariants.H6,
|
|
28
|
+
style: styles.value,
|
|
29
|
+
children: value
|
|
30
|
+
})]
|
|
31
|
+
});
|
|
32
|
+
const AccountInfoCard = () => {
|
|
33
|
+
const t = (0, _i18n.useText)();
|
|
34
|
+
const {
|
|
35
|
+
model
|
|
36
|
+
} = (0, _ProfileContext.useProfile)();
|
|
37
|
+
const user = (0, _effectorReact.useUnit)(model.$user);
|
|
38
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ProfileCard.ProfileCard, {
|
|
39
|
+
title: t('profile.accountInfo'),
|
|
40
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(InfoField, {
|
|
41
|
+
label: t('profile.fullName'),
|
|
42
|
+
value: user?.fullName ?? ''
|
|
43
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(InfoField, {
|
|
44
|
+
label: t('profile.username'),
|
|
45
|
+
value: user?.username ?? ''
|
|
46
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(InfoField, {
|
|
47
|
+
label: t('profile.school'),
|
|
48
|
+
value: user?.schoolName ?? ''
|
|
49
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
50
|
+
style: styles.noteDivider
|
|
51
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
52
|
+
style: styles.note,
|
|
53
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.InfoIcon, {
|
|
54
|
+
size: NOTE_ICON_SIZE,
|
|
55
|
+
color: _reactNativeUi.COLORS.NEUTRAL_7
|
|
56
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.Typography, {
|
|
57
|
+
variant: _reactNativeUi.HeadingVariants.H8,
|
|
58
|
+
style: styles.noteText,
|
|
59
|
+
children: t('profile.changePasswordNote')
|
|
60
|
+
})]
|
|
61
|
+
})]
|
|
62
|
+
});
|
|
63
|
+
};
|
|
64
|
+
exports.AccountInfoCard = AccountInfoCard;
|
|
65
|
+
const styles = _reactNative.StyleSheet.create({
|
|
66
|
+
field: {
|
|
67
|
+
gap: _reactNativeUi.SPACING['100'],
|
|
68
|
+
paddingHorizontal: _reactNativeUi.SPACING['100']
|
|
69
|
+
},
|
|
70
|
+
label: {
|
|
71
|
+
color: _reactNativeUi.COLORS.NEUTRAL_7
|
|
72
|
+
},
|
|
73
|
+
value: {
|
|
74
|
+
color: _reactNativeUi.COLORS.NEUTRAL_9
|
|
75
|
+
},
|
|
76
|
+
noteDivider: {
|
|
77
|
+
backgroundColor: _reactNativeUi.COLORS.NEUTRAL_3,
|
|
78
|
+
height: 1,
|
|
79
|
+
marginHorizontal: _reactNativeUi.SPACING['100']
|
|
80
|
+
},
|
|
81
|
+
note: {
|
|
82
|
+
alignItems: 'center',
|
|
83
|
+
flexDirection: 'row',
|
|
84
|
+
gap: _reactNativeUi.SPACING['200']
|
|
85
|
+
},
|
|
86
|
+
noteText: {
|
|
87
|
+
color: _reactNativeUi.COLORS.NEUTRAL_7,
|
|
88
|
+
flexShrink: 1
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
//# sourceMappingURL=AccountInfoCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_effectorReact","_reactNative","_reactNativeUi","_i18n","_ProfileContext","_ProfileCard","_jsxRuntime","e","__esModule","default","NOTE_ICON_SIZE","InfoField","label","value","jsxs","View","style","styles","field","children","jsx","Typography","variant","HeadingVariants","H8","H6","AccountInfoCard","t","useText","model","useProfile","user","useUnit","$user","ProfileCard","title","fullName","username","schoolName","noteDivider","note","InfoIcon","size","color","COLORS","NEUTRAL_7","noteText","exports","StyleSheet","create","gap","SPACING","paddingHorizontal","NEUTRAL_9","backgroundColor","NEUTRAL_3","height","marginHorizontal","alignItems","flexDirection","flexShrink"],"sourceRoot":"../../../../../../src","sources":["features/profile/components/info/AccountInfoCard.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,cAAA,GAAAD,OAAA;AACA,IAAAE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BAAiB,EAAED,sBAAO,CAAC,KAAK;EAClC,CAAC;EACDvC,KAAK,EAAE;IACL+B,KAAK,EAAEC,qBAAM,CAACC;EAChB,CAAC;EACDhC,KAAK,EAAE;IACL8B,KAAK,EAAEC,qBAAM,CAACS;EAChB,CAAC;EACDd,WAAW,EAAE;IACXe,eAAe,EAAEV,qBAAM,CAACW,SAAS;IACjCC,MAAM,EAAE,CAAC;IACTC,gBAAgB,EAAEN,sBAAO,CAAC,KAAK;EACjC,CAAC;EACDX,IAAI,EAAE;IACJkB,UAAU,EAAE,QAAQ;IACpBC,aAAa,EAAE,KAAK;IACpBT,GAAG,EAAEC,sBAAO,CAAC,KAAK;EACpB,CAAC;EACDL,QAAQ,EAAE;IACRH,KAAK,EAAEC,qBAAM,CAACC,SAAS;IACvBe,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.JoinClassModal = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _effectorReact = require("effector-react");
|
|
10
|
+
var _reactNativeConfirmationCodeField = require("react-native-confirmation-code-field");
|
|
11
|
+
var _reactNativeUi = require("@magmamath/react-native-ui");
|
|
12
|
+
var _studentsQa = require("@magmamath/students-qa");
|
|
13
|
+
var _i18n = require("../../../../i18n/i18n.js");
|
|
14
|
+
var _useKeyboardOffset = require("../../../../shared/hooks/useKeyboardOffset.js");
|
|
15
|
+
var _commonConstants = require("../../../../shared/common.constants.js");
|
|
16
|
+
var _profileConstants = require("../../shared/profile.constants.js");
|
|
17
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
19
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
20
|
+
const CODE_PLACEHOLDER = '0';
|
|
21
|
+
const MAX_MODAL_WIDTH = 1044;
|
|
22
|
+
const SCREEN_MARGIN = 48;
|
|
23
|
+
const CELL_GAP = _reactNativeUi.SPACING['400'];
|
|
24
|
+
const MODAL_H_PADDING = _reactNativeUi.SPACING['800'];
|
|
25
|
+
const CELL_ASPECT = 0.95;
|
|
26
|
+
const CELL_RADIUS_RATIO = 0.24; // 36 / 150 in the design
|
|
27
|
+
const CELL_FONT_RATIO = 0.42; // 64 / 150 in the design
|
|
28
|
+
const MAX_CELL_RADIUS = 36;
|
|
29
|
+
const CLOSE_ICON_SIZE = 18;
|
|
30
|
+
const KEYBOARD_LIFT_RATIO = 2;
|
|
31
|
+
const JoinClassModal = ({
|
|
32
|
+
modal: {
|
|
33
|
+
closeModal,
|
|
34
|
+
params
|
|
35
|
+
}
|
|
36
|
+
}) => {
|
|
37
|
+
const t = (0, _i18n.useText)();
|
|
38
|
+
const {
|
|
39
|
+
model
|
|
40
|
+
} = params;
|
|
41
|
+
const {
|
|
42
|
+
width
|
|
43
|
+
} = (0, _reactNative.useWindowDimensions)();
|
|
44
|
+
const {
|
|
45
|
+
code,
|
|
46
|
+
isComplete,
|
|
47
|
+
isPending
|
|
48
|
+
} = (0, _effectorReact.useUnit)({
|
|
49
|
+
code: model.joinClass.$code,
|
|
50
|
+
isComplete: model.joinClass.$isComplete,
|
|
51
|
+
isPending: model.api.joinClassFx.pending
|
|
52
|
+
});
|
|
53
|
+
const modalWidth = Math.min(MAX_MODAL_WIDTH, width - SCREEN_MARGIN);
|
|
54
|
+
const cellSize = (modalWidth - MODAL_H_PADDING * 2 - CELL_GAP * (_profileConstants.CLASS_CODE_LENGTH - 1)) / _profileConstants.CLASS_CODE_LENGTH;
|
|
55
|
+
const cellRadius = Math.min(MAX_CELL_RADIUS, cellSize * CELL_RADIUS_RATIO);
|
|
56
|
+
const cellFontSize = cellSize * CELL_FONT_RATIO;
|
|
57
|
+
const setCode = value => model.joinClass.setCode(value.toUpperCase());
|
|
58
|
+
const [cellProps, getCellOnLayoutHandler] = (0, _reactNativeConfirmationCodeField.useClearByFocusCell)({
|
|
59
|
+
value: code,
|
|
60
|
+
setValue: setCode
|
|
61
|
+
});
|
|
62
|
+
(0, _react.useEffect)(() => {
|
|
63
|
+
const subscription = model.api.joinClassFx.finally.watch(() => {
|
|
64
|
+
model.joinClass.reset();
|
|
65
|
+
closeModal();
|
|
66
|
+
});
|
|
67
|
+
return () => subscription.unsubscribe();
|
|
68
|
+
}, [model, closeModal]);
|
|
69
|
+
const closeAndReset = () => {
|
|
70
|
+
model.joinClass.reset();
|
|
71
|
+
closeModal();
|
|
72
|
+
};
|
|
73
|
+
const submit = () => model.joinClass.submit();
|
|
74
|
+
const keyboardHeight = (0, _useKeyboardOffset.useKeyboardOffset)();
|
|
75
|
+
const liftStyle = (0, _react.useMemo)(() => ({
|
|
76
|
+
transform: [{
|
|
77
|
+
translateY: _reactNative.Animated.multiply(keyboardHeight, -1 / KEYBOARD_LIFT_RATIO)
|
|
78
|
+
}]
|
|
79
|
+
}), [keyboardHeight]);
|
|
80
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Animated.View, {
|
|
81
|
+
style: liftStyle,
|
|
82
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.BaseModal, {
|
|
83
|
+
onClose: closeAndReset,
|
|
84
|
+
closeButton: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.Button, {
|
|
85
|
+
variant: _reactNativeUi.ButtonVariant.TERTIARY,
|
|
86
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.CrossIcon, {
|
|
87
|
+
size: CLOSE_ICON_SIZE,
|
|
88
|
+
color: _reactNativeUi.COLORS.NEUTRAL_7
|
|
89
|
+
}),
|
|
90
|
+
onPress: closeAndReset,
|
|
91
|
+
testID: _studentsQa.TEST_IDS.JOIN_CLASS_CLOSE_BUTTON
|
|
92
|
+
}),
|
|
93
|
+
style: {
|
|
94
|
+
container: [styles.modal, {
|
|
95
|
+
width: modalWidth
|
|
96
|
+
}]
|
|
97
|
+
},
|
|
98
|
+
header: t('profile.joinClassTitle'),
|
|
99
|
+
content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeConfirmationCodeField.CodeField, {
|
|
100
|
+
...cellProps,
|
|
101
|
+
nativeID: "join-class-code",
|
|
102
|
+
value: code,
|
|
103
|
+
onChangeText: setCode,
|
|
104
|
+
cellCount: _profileConstants.CLASS_CODE_LENGTH,
|
|
105
|
+
rootStyle: styles.codeRoot,
|
|
106
|
+
textInputStyle: styles.codeInput,
|
|
107
|
+
autoFocus: true,
|
|
108
|
+
autoComplete: "off",
|
|
109
|
+
textContentType: "oneTimeCode",
|
|
110
|
+
keyboardType: "default",
|
|
111
|
+
returnKeyType: "go",
|
|
112
|
+
onSubmitEditing: submit,
|
|
113
|
+
testID: _studentsQa.TEST_IDS.JOIN_CLASS_INPUT(0),
|
|
114
|
+
renderCell: ({
|
|
115
|
+
index,
|
|
116
|
+
symbol,
|
|
117
|
+
isFocused
|
|
118
|
+
}) => {
|
|
119
|
+
const isPlaceholder = !symbol && !isFocused;
|
|
120
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
121
|
+
style: [styles.cell, {
|
|
122
|
+
borderRadius: cellRadius,
|
|
123
|
+
width: cellSize
|
|
124
|
+
}],
|
|
125
|
+
onLayout: getCellOnLayoutHandler(index),
|
|
126
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
127
|
+
style: [styles.cellText, {
|
|
128
|
+
fontSize: cellFontSize
|
|
129
|
+
}, isPlaceholder && styles.cellPlaceholder],
|
|
130
|
+
children: symbol || (isFocused ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeConfirmationCodeField.Cursor, {}) : CODE_PLACEHOLDER)
|
|
131
|
+
})
|
|
132
|
+
}, index);
|
|
133
|
+
}
|
|
134
|
+
}),
|
|
135
|
+
footer: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.ReanimatedButton, {
|
|
136
|
+
variant: _reactNativeUi.ButtonVariant.PRIMARY,
|
|
137
|
+
colorScheme: _reactNativeUi.ButtonColor.ORANGE,
|
|
138
|
+
size: _reactNativeUi.ButtonSize.LARGE,
|
|
139
|
+
onPress: submit,
|
|
140
|
+
disabled: !isComplete || isPending,
|
|
141
|
+
isLoading: isPending,
|
|
142
|
+
testID: _studentsQa.TEST_IDS.JOIN_CLASS_SUBMIT_BUTTON,
|
|
143
|
+
style: buttonStyle,
|
|
144
|
+
children: t('profile.joinClassButton')
|
|
145
|
+
})
|
|
146
|
+
})
|
|
147
|
+
});
|
|
148
|
+
};
|
|
149
|
+
exports.JoinClassModal = JoinClassModal;
|
|
150
|
+
const styles = _reactNative.StyleSheet.create({
|
|
151
|
+
modal: {
|
|
152
|
+
gap: _reactNativeUi.SPACING['800'],
|
|
153
|
+
paddingHorizontal: MODAL_H_PADDING
|
|
154
|
+
},
|
|
155
|
+
codeRoot: {
|
|
156
|
+
flexDirection: 'row',
|
|
157
|
+
gap: CELL_GAP,
|
|
158
|
+
justifyContent: 'center'
|
|
159
|
+
},
|
|
160
|
+
codeInput: {
|
|
161
|
+
borderWidth: 0,
|
|
162
|
+
// kill the WebKit/iPad focus ring on the hidden input — focus is shown by the cells
|
|
163
|
+
...(_commonConstants.isWeb && {
|
|
164
|
+
outlineStyle: 'none'
|
|
165
|
+
})
|
|
166
|
+
},
|
|
167
|
+
cell: {
|
|
168
|
+
alignItems: 'center',
|
|
169
|
+
aspectRatio: CELL_ASPECT,
|
|
170
|
+
backgroundColor: _reactNativeUi.COLORS.NEUTRAL_1,
|
|
171
|
+
borderColor: _reactNativeUi.COLORS.NEUTRAL_5,
|
|
172
|
+
borderWidth: 3,
|
|
173
|
+
justifyContent: 'center'
|
|
174
|
+
},
|
|
175
|
+
cellText: {
|
|
176
|
+
color: _reactNativeUi.COLORS.NEUTRAL_9,
|
|
177
|
+
fontFamily: _reactNativeUi.FONT_FAMILY.buenosAiresSemiBold,
|
|
178
|
+
textAlign: 'center'
|
|
179
|
+
},
|
|
180
|
+
cellPlaceholder: {
|
|
181
|
+
color: _reactNativeUi.COLORS.NEUTRAL_5
|
|
182
|
+
},
|
|
183
|
+
text: {
|
|
184
|
+
textTransform: 'uppercase'
|
|
185
|
+
}
|
|
186
|
+
});
|
|
187
|
+
const buttonStyle = {
|
|
188
|
+
text: styles.text
|
|
189
|
+
};
|
|
190
|
+
//# sourceMappingURL=JoinClassModal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_effectorReact","_reactNativeConfirmationCodeField","_reactNativeUi","_studentsQa","_i18n","_useKeyboardOffset","_commonConstants","_profileConstants","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","CODE_PLACEHOLDER","MAX_MODAL_WIDTH","SCREEN_MARGIN","CELL_GAP","SPACING","MODAL_H_PADDING","CELL_ASPECT","CELL_RADIUS_RATIO","CELL_FONT_RATIO","MAX_CELL_RADIUS","CLOSE_ICON_SIZE","KEYBOARD_LIFT_RATIO","JoinClassModal","modal","closeModal","params","useText","model","width","useWindowDimensions","code","isComplete","isPending","useUnit","joinClass","$code","$isComplete","api","joinClassFx","pending","modalWidth","Math","min","cellSize","CLASS_CODE_LENGTH","cellRadius","cellFontSize","setCode","value","toUpperCase","cellProps","getCellOnLayoutHandler","useClearByFocusCell","setValue","useEffect","subscription","finally","watch","reset","unsubscribe","closeAndReset","submit","keyboardHeight","useKeyboardOffset","liftStyle","useMemo","transform","translateY","Animated","multiply","jsx","View","style","children","BaseModal","onClose","closeButton","Button","variant","ButtonVariant","TERTIARY","icon","CrossIcon","size","color","COLORS","NEUTRAL_7","onPress","testID","TEST_IDS","JOIN_CLASS_CLOSE_BUTTON","container","styles","header","content","CodeField","nativeID","onChangeText","cellCount","rootStyle","codeRoot","textInputStyle","codeInput","autoFocus","autoComplete","textContentType","keyboardType","returnKeyType","onSubmitEditing","JOIN_CLASS_INPUT","renderCell","index","symbol","isFocused","isPlaceholder","cell","borderRadius","onLayout","Text","cellText","fontSize","cellPlaceholder","Cursor","footer","ReanimatedButton","PRIMARY","colorScheme","ButtonColor","ORANGE","ButtonSize","LARGE","disabled","isLoading","JOIN_CLASS_SUBMIT_BUTTON","buttonStyle","exports","StyleSheet","create","gap","paddingHorizontal","flexDirection","justifyContent","borderWidth","isWeb","outlineStyle","alignItems","aspectRatio","backgroundColor","NEUTRAL_1","borderColor","NEUTRAL_5","NEUTRAL_9","fontFamily","FONT_FAMILY","buenosAiresSemiBold","textAlign","text","textTransform"],"sourceRoot":"../../../../../../src","sources":["features/profile/components/modals/JoinClassModal.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,iCAAA,GAAAH,OAAA;AACA,IAAAI,cAAA,GAAAJ,OAAA;AAYA,IAAAK,WAAA,GAAAL,OAAA;AAEA,IAAAM,KAAA,GAAAN,OAAA;AACA,IAAAO,kBAAA,GAAAP,OAAA;AACA,I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