Initial commit

This commit is contained in:
janisslsm committed 2026-07-27 16:20:00 +03:00
commit af3b49f756
16065 files changed
+2938410

No files matched your search

@@ -0,0 +1,155 @@
/* Metro module 13851; source: modules/user_settings/chat/native/SettingsChatScreen.tsx; dependencies: [31, 27, 1878, 3808, 8224, 661, 33, 4501, 697, 1484, 632, 3802, 6766, 1244, 6239, 1305, 11060, 7508, 9692, 13170, 2] */
function _fun105377(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#105377, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14048:6, offset: 0x022b6648, size: 390 bytes, params: 8, frame: 22
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const subscriptionStore = importDefault(3808) /* metro dependency 3808: SubscriptionStore */;
const env0_7 = (require(8224) /* metro dependency 8224: SettingsConstants */).MobileSetting;
const env0_8 = (require(661) /* metro dependency 661: Constants */).UserSettingsSections;
let value = require(33) /* metro dependency 33 */;
const env0_9 = value.jsx;
const env0_10 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const object = {'marginTop': 8, 'borderColor': null, 'borderWidth': 1};
const REDESIGN_INPUT_CONTROL_SELECTED = (importDefault(697) /* metro dependency 697: native */).colors.REDESIGN_INPUT_CONTROL_SELECTED;
object.borderColor = REDESIGN_INPUT_CONTROL_SELECTED;
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
const env0_11 = Reflect.apply(createStyles, value, [{card: object, cardContent: {'flexDirection': 'row',
'alignItems': 'center'}, cardIcon: {marginEnd: 8}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/chat/native/SettingsChatScreen.tsx');
exports.default = SettingsChatScreen;
}
function VideoUploadQualityNitroUpsell() { // fn#105378, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14048:448, offset: 0x022b67ce, size: 593 bytes, params: 1, frame: 36
var r5;
var Card;
var items2;
const env0_0 = (require(1484) /* metro dependency 1484: useNavigationNative */).useStackNavigation();
const styles = useStyles();
const value2 = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([UserStore,
SubscriptionStore], _fun105379);
const TextWithIOSLinkWorkaround = (require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const textWithIOSLinkWorkaround = <TextWithIOSLinkWorkaround variant="text-xs/normal" color="text-muted">{intl.format((require(1244) /* metro dependency 1244: indexNative */).t['Up+hSO'],
{supportURL: 'https://support.discord.com/hc/articles/9665451164951'})}</TextWithIOSLinkWorkaround>;
if (value2) {
r5 = !value2;
} else {
var viewBinding2Props = {style: styles.card};
Card = (require(6239) /* metro dependency 6239: CardNative */).Card;
var viewBinding3Props = {style: styles.cardContent};
items2 = [((Icon) => <Icon style={styles.cardIcon} source={importDefault(11060) /* metro dependency 11060 */} size={(require(1305) /* metro dependency 1305: native */).Icon.Sizes.SMALL} color={(importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.PRIMARY_400} />)((require(1305) /* metro dependency 1305: native */).Icon)];
items2[1] = <TextWithIOSLinkWorkaround variant="text-sm/medium" color="text-muted">{intl.format((require(1244) /* metro dependency 1244: indexNative */).t.uW1zul,
{onClick: onClick_105380})}</TextWithIOSLinkWorkaround>;
r5 = <View {...viewBinding2Props}><Card border="none" shadow="none"><View {...viewBinding3Props}>{items2}</View></Card></View>;
}
return (
<View>
{textWithIOSLinkWorkaround}
{r5}
</View>
);
}
function SettingsChatScreen({route}) { // fn#105381, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14048:1491, offset: 0x022b6ab6, size: 121 bytes, params: 2, frame: 18
return ((Component) => <Component node={env0_3.useMemo(_fun105382,
[route == null || route.params == null ? undefined : route.params.initialSetting])} />)(importDefault(13170) /* metro dependency 13170: SettingLayout */);
}
function _fun105379() { // fn#105379, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14048:567, offset: 0x022b6a1f, size: 66 bytes, params: 1, frame: 14
const value = environment.__proto__;
return (require(3802) /* metro dependency 3802: PremiumUtils */).hasPremiumSubscriptionToDisplay(UserStore.getCurrentUser(),
SubscriptionStore.getPremiumTypeSubscription());
}
function VideoUploadQualityNitroUpsellOnClick() { // fn#105380, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14048:1298, owner: VideoUploadQualityNitroUpsell.onClick, offset: 0x022b6a61, size: 85 bytes, params: 1, frame: 15
const defaultImport = importDefault(7508) /* metro dependency 7508: UserSettingsModalActionCreators */;
const setSection = defaultImport.setSection;
let PREMIUM = UserSettingsSections.PREMIUM;
Reflect.apply(setSection, defaultImport, [PREMIUM]);
const binding = env0_0;
const push = binding.push;
PREMIUM = UserSettingsSections.PREMIUM;
Reflect.apply(push, binding, [PREMIUM, {isFromTextSection: true}]);
}
function _fun105382() { // fn#105382, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14048:1549, offset: 0x022b6b2f, size: 1105 bytes, params: 1, frame: 24
const value2 = undefined;
const settingBuildersModule = require(9692) /* metro dependency 9692: SettingBuilders */;
const createList = settingBuildersModule.createList;
const object = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
object.label = Reflect.apply(string, intl, [(require(1244) /* metro dependency 1244: indexNative */).t['9nyle0']]);
const DISPLAY_MEDIA_LINKS = MobileSetting.DISPLAY_MEDIA_LINKS;
const DISPLAY_MEDIA_UPLOADS = MobileSetting.DISPLAY_MEDIA_UPLOADS;
const IMAGE_DESCRIPTIONS = MobileSetting.IMAGE_DESCRIPTIONS;
object.settings = [DISPLAY_MEDIA_LINKS, DISPLAY_MEDIA_UPLOADS, IMAGE_DESCRIPTIONS];
string = intl.string;
const T0rbtM = (require(1244) /* metro dependency 1244: indexNative */).t.T0rbtM;
object.subLabel = Reflect.apply(string, intl, [T0rbtM]);
const items2 = [object];
const object6 = {};
string = intl.string;
const YTnrbV = (require(1244) /* metro dependency 1244: indexNative */).t.YTnrbV;
object6.label = Reflect.apply(string, intl, [YTnrbV]);
const SAVE_CAMERA_UPLOADS_TO_DEVICE = MobileSetting.SAVE_CAMERA_UPLOADS_TO_DEVICE;
object6.settings = [SAVE_CAMERA_UPLOADS_TO_DEVICE];
object6.subLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.eZmJYE);
items2[1] = object6;
const object8 = {};
const VIDEO_UPLOAD_QUALITY = MobileSetting.VIDEO_UPLOAD_QUALITY;
object8.settings = [VIDEO_UPLOAD_QUALITY];
object8.subLabel = <VideoUploadQualityNitroUpsell />;
items2[2] = object8;
const object12 = {};
object12.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.fyG8t2);
const DATA_SAVING_MODE = MobileSetting.DATA_SAVING_MODE;
object12.settings = [DATA_SAVING_MODE];
object12.subLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['wC0+Ph']);
items2[3] = object12;
string = intl.string;
const PWZOn4 = (require(1244) /* metro dependency 1244: indexNative */).t.PWZOn4;
const EMBED_AND_LINK_PREVIEWS = MobileSetting.EMBED_AND_LINK_PREVIEWS;
items2[4] = {label: Reflect.apply(string, intl, [PWZOn4]), settings: [EMBED_AND_LINK_PREVIEWS]};
const object13 = {};
object13.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.sMOuuS);
const EMOJI_REACTIONS_ON_MESSAGES = MobileSetting.EMOJI_REACTIONS_ON_MESSAGES;
const CHAT_EMOJI_EMOTICONS = MobileSetting.CHAT_EMOJI_EMOTICONS;
object13.settings = [EMOJI_REACTIONS_ON_MESSAGES, CHAT_EMOJI_EMOTICONS];
const format = intl.format;
const GejoQK = (require(1244) /* metro dependency 1244: indexNative */).t.GejoQK;
object13.subLabel = Reflect.apply(format, intl, [GejoQK, {emojiHook: function(a0) {
return a0;
}}]);
items2[5] = object13;
const object14 = {};
object14.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['29xPVZ']);
const STICKER_AUTOCOMPLETE = MobileSetting.STICKER_AUTOCOMPLETE;
object14.settings = [STICKER_AUTOCOMPLETE];
object14.subLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['/eVrj8']);
items2[6] = object14;
const object15 = {};
object15.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['4NDJgM']);
const SWIPE_RIGHT_TO_LEFT = MobileSetting.SWIPE_RIGHT_TO_LEFT;
const DOUBLE_TAP_TO_REACT_ENABLED = MobileSetting.DOUBLE_TAP_TO_REACT_ENABLED;
const DOUBLE_TAP_EMOJI = MobileSetting.DOUBLE_TAP_EMOJI;
object15.settings = [SWIPE_RIGHT_TO_LEFT, DOUBLE_TAP_TO_REACT_ENABLED, DOUBLE_TAP_EMOJI];
items2[7] = object15;
const object16 = {};
string = intl.string;
const BkuOO6 = (require(1244) /* metro dependency 1244: indexNative */).t.BkuOO6;
object16.label = Reflect.apply(string, intl, [BkuOO6]);
const TEXT_AND_MEDIA_SYNC = MobileSetting.TEXT_AND_MEDIA_SYNC;
object16.settings = [TEXT_AND_MEDIA_SYNC];
object16.subLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.p4IKE9);
items2[8] = object16;
return Reflect.apply(createList, settingBuildersModule, [{sections: items2,
scrollTarget: route == null || route.params == null ? value2 : route.params.initialSetting}]);
}
@@ -0,0 +1,20 @@
/* Metro module 13866; source: modules/user_settings/chat/native/SwipeRightToLeftScreen.tsx; dependencies: [31, 8224, 33, 9692, 13170, 2] */
function _fun105447(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#105447, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14063:6, offset: 0x022b9376, size: 164 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(8224) /* metro dependency 8224: SettingsConstants */).MobileSetting;
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/chat/native/SwipeRightToLeftScreen.tsx');
exports.default = UserSettingsSwipeRightToLeft;
}
function UserSettingsSwipeRightToLeft() { // fn#105448, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14063:248, offset: 0x022b941a, size: 72 bytes, params: 1, frame: 14
return ((Component) => <Component node={env0_3.useMemo(function() {
var moduleValue = require(dependencyMap[3]);
var CHAT_GESTURES = MobileSetting.CHAT_GESTURES;
return moduleValue.createList({sections: [{settings: [CHAT_GESTURES]}]});
}, [])} />)(importDefault(13170) /* metro dependency 13170: SettingLayout */);
}
@@ -0,0 +1,240 @@
/* Metro module 13855; source: modules/user_settings/chat/native/UserSettingsText.tsx; dependencies: [31, 27, 1878, 3808, 1311, 1312, 661, 33, 4501, 697, 683, 3829, 7896, 3860, 566, 3802, 1484, 7508, 1305, 11060, 4573, 1244, 7972, 4572, 6231, 6808, 7988, 7987, 2] */
function _fun105392(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#105392, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14052:6, offset: 0x022b732e, size: 497 bytes, params: 8, frame: 24
const env0_0 = require;
const trackSettingsUpdated = function(a0, a1, a2, a3, a4) {
var defaultImport = importDefault(dependencyMap[10]);
var IMAGE_VIDEO_DATA_SETTINGS_UPDATED = AnalyticEvents.IMAGE_VIDEO_DATA_SETTINGS_UPDATED;
defaultImport.track(IMAGE_VIDEO_DATA_SETTINGS_UPDATED, {video_upload_quality: a1, image_descriptions: a2,
low_quality_image_mode: a3, data_saving_mode: a4, updated_setting: a0});
};
const closure = setDataSavingMode;
const closure2 = setVideoUploadQuality;
const closure3 = function({videoUploadQuality, viewImageDescriptions, lowQualityImageMode, dataSavingMode}) {
trackSettingsUpdated('image_descriptions', videoUploadQuality, viewImageDescriptions, lowQualityImageMode,
dataSavingMode);
require(dependencyMap[11]).ViewImageDescriptions.updateSetting(viewImageDescriptions);
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const subscriptionStore = importDefault(3808) /* metro dependency 3808: SubscriptionStore */;
const selectivelySyncedUserSettingsStore = importDefault(1311) /* metro dependency 1311: SelectivelySyncedUserSettingsStore */;
const unsyncedUserSettingsStore = importDefault(1312) /* metro dependency 1312: UnsyncedUserSettingsStore */;
const env0_8 = (require(1312) /* metro dependency 1312: UnsyncedUserSettingsStore */).VideoQualitySettings;
let value = require(661) /* metro dependency 661: Constants */;
const env0_9 = value.AnalyticEvents;
const env0_10 = value.AnalyticsSections;
const env0_11 = value.UserSettingsSections;
value = require(33) /* metro dependency 33 */;
const env0_12 = value.jsx;
const env0_13 = value.jsxs;
const env0_14 = value.Fragment;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const PRIMARY_400 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.PRIMARY_400;
const env0_15 = Reflect.apply(createStyles, value, [{flex: {flex: 1}, nitroUpsell: {'flexDirection': 'row',
'alignItems': 'center'}, nitroIcon: {'width': 16, 'height': 16, tintColor: PRIMARY_400}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/chat/native/UserSettingsText.tsx');
exports.default = UserSettingsText;
exports.setStickerAutocomplete = function(a0) {
importDefault(dependencyMap[10]).track(AnalyticEvents.STICKERS_IN_AUTOCOMPLETE_TOGGLED, {enabled: a0,
location: {section: AnalyticsSections.SETTINGS_TEXT_AND_IMAGES}});
require(dependencyMap[11]).IncludeStickersInAutocomplete.updateSetting(a0);
};
exports.setLowQualityImageMode = setLowQualityImageMode;
exports.setDataSavingMode = closure;
exports.setVideoUploadQuality = closure2;
exports.setImageDescriptions = closure3;
}
function setDataSavingMode({videoUploadQuality, viewImageDescriptions, lowQualityImageMode, dataSavingMode}) { // fn#105394, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14052:679, offset: 0x022b757d, size: 89 bytes, params: 2, frame: 20
trackSettingsUpdated('data_saving_mode', videoUploadQuality, viewImageDescriptions, lowQualityImageMode,
dataSavingMode);
const userSettingsActionCreators = importDefault(7896) /* metro dependency 7896: UserSettingsActionCreators */;
userSettingsActionCreators.updatedUnsyncedSettings({dataSavingMode: dataSavingMode});
}
function setVideoUploadQuality({videoUploadQuality, viewImageDescriptions, lowQualityImageMode, dataSavingMode}) { // fn#105395, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14052:895, offset: 0x022b75d6, size: 89 bytes, params: 2, frame: 20
trackSettingsUpdated('video_upload_quality', videoUploadQuality, viewImageDescriptions, lowQualityImageMode,
dataSavingMode);
const userSettingsActionCreators = importDefault(7896) /* metro dependency 7896: UserSettingsActionCreators */;
userSettingsActionCreators.updatedUnsyncedSettings({videoUploadQuality: videoUploadQuality});
}
function UserSettingsText() { // fn#105397, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14052:1438, offset: 0x022b7689, size: 2461 bytes, params: 1, frame: 45
const useTokenModule = require(3860) /* metro dependency 3860: useToken */;
const useToken = useTokenModule.useToken;
const TABLE_ROW_PADDING = (importDefault(697) /* metro dependency 697: native */).modules.mobile.TABLE_ROW_PADDING;
const value2 = Reflect.apply(useToken, useTokenModule, [TABLE_ROW_PADDING]);
const styles = useStyles();
const InlineAttachmentMedia = (require(3829) /* metro dependency 3829: UserSettings */).InlineAttachmentMedia;
const value3 = InlineAttachmentMedia.useSetting();
const InlineEmbedMedia = (require(3829) /* metro dependency 3829: UserSettings */).InlineEmbedMedia;
const value4 = InlineEmbedMedia.useSetting();
const RenderEmbeds = (require(3829) /* metro dependency 3829: UserSettings */).RenderEmbeds;
const value5 = RenderEmbeds.useSetting();
const RenderReactions = (require(3829) /* metro dependency 3829: UserSettings */).RenderReactions;
const value6 = RenderReactions.useSetting();
const value7 = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([UnsyncedUserSettingsStore],
function() {
return {lowQualityImageMode: UnsyncedUserSettingsStore.dataSavingMode,
videoUploadQuality: UnsyncedUserSettingsStore.videoUploadQuality,
dataSavingMode: UnsyncedUserSettingsStore.dataSavingMode};
});
const env0_1 = value7.lowQualityImageMode;
const videoUploadQuality = value7.videoUploadQuality;
const dataSavingMode = value7.dataSavingMode;
const premiumTypeSubscription = (require(566) /* metro dependency 566: flux */).useStateFromStores([SubscriptionStore],
function() {
return SubscriptionStore.getPremiumTypeSubscription();
});
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getCurrentUser();
});
const hasPremiumSubscriptionToDisplay2 = (require(3802) /* metro dependency 3802: PremiumUtils */).hasPremiumSubscriptionToDisplay(currentUser,
premiumTypeSubscription);
const value8 = (require(566) /* metro dependency 566: flux */).useStateFromStores([SelectivelySyncedUserSettingsStore],
function() {
return SelectivelySyncedUserSettingsStore.shouldSync('text');
});
const ViewImageDescriptions = (require(3829) /* metro dependency 3829: UserSettings */).ViewImageDescriptions;
const value9 = ViewImageDescriptions.useSetting();
const env0_5 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
const Form = (require(7972) /* metro dependency 7972: native */).Form;
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
const object = {paddingHorizontal: value2};
const jsxRuntimeEnv0_14Binding = jsxRuntimeEnv0_14;
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
const object2 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
object2.title = Reflect.apply(string, intl, [t['9nyle0']]);
object2.description = intl.format((require(1244) /* metro dependency 1244: indexNative */).t.qjjvqO, {maxSize: 8});
object2.hasIcons = false;
const TableSwitchRow = (require(6808) /* metro dependency 6808: TableSwitchRowNative */).TableSwitchRow;
string = intl.string;
const U47N1p = (require(1244) /* metro dependency 1244: indexNative */).t.U47N1p;
const tableSwitchRow = <TableSwitchRow label={Reflect.apply(string, intl,
[U47N1p])} value={value4} onValueChange={InlineEmbedMedia.updateSetting} />;
string = intl.string;
const VP11No = (require(1244) /* metro dependency 1244: indexNative */).t.VP11No;
const tableRowGroup = <TableRowGroup {...object2}>{tableSwitchRow}<TableSwitchRow label={Reflect.apply(string, intl,
[VP11No])} value={value3} onValueChange={InlineAttachmentMedia.updateSetting} /></TableRowGroup>;
string = intl.string;
const T0rbtM = (require(1244) /* metro dependency 1244: indexNative */).t.T0rbtM;
const items3 = [<>{tableRowGroup}<TableRowGroup description={Reflect.apply(string, intl,
[T0rbtM])} hasIcons={false}><TableSwitchRow label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['w8j+yW'])} value={value9} onValueChange={function(a0) {
setImageDescriptions({videoUploadQuality: videoUploadQuality, viewImageDescriptions: a0,
lowQualityImageMode: lowQualityImageMode, dataSavingMode: dataSavingMode});
}} /></TableRowGroup></>];
const TableRadioGroup = (require(7988) /* metro dependency 7988: TableRadioGroupNative */).TableRadioGroup;
const object3 = {};
string = intl.string;
const PXq9f1 = (require(1244) /* metro dependency 1244: indexNative */).t.PXq9f1;
object3.title = Reflect.apply(string, intl, [PXq9f1]).toUpperCase();
object3.value = videoUploadQuality;
object3.onChange = onChange_105404;
object3.description = intl.format((require(1244) /* metro dependency 1244: indexNative */).t['Up+hSO'],
{supportURL: 'https://support.discord.com/hc/articles/9665451164951'});
object3.hasIcons = false;
const TableRadioRow = (require(7987) /* metro dependency 7987: TableRadioRowNative */).TableRadioRow;
string = intl.string;
const cWGW5d = (require(1244) /* metro dependency 1244: indexNative */).t.cWGW5d;
const BEST = VideoQualitySettings.BEST;
const items4 = [<TableRadioRow label={Reflect.apply(string, intl, [cWGW5d])} value={BEST} />];
string = intl.string;
const STANDARD = VideoQualitySettings.STANDARD;
items4[1] = <TableRadioRow label={Reflect.apply(string, intl, [t['5hKnyC']])} value={STANDARD} />;
string = intl.string;
const y5k4ZJ = (require(1244) /* metro dependency 1244: indexNative */).t.y5k4ZJ;
const DATA_SAVER = VideoQualitySettings.DATA_SAVER;
items4[2] = <TableRadioRow label={Reflect.apply(string, intl, [y5k4ZJ])} value={DATA_SAVER} />;
items3[1] = <View><TableRadioGroup {...object3}>{items4}</TableRadioGroup>{!hasPremiumSubscriptionToDisplay2 && renderNitroUpsellText()}</View>;
items3[2] = <TableRowGroup title={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.fyG8t2)} description={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['wC0+Ph'])} hasIcons={false}><TableSwitchRow label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.ix8XIj)} value={dataSavingMode} onValueChange={onValueChange_105403} /></TableRowGroup>;
string = intl.string;
const PWZOn4 = (require(1244) /* metro dependency 1244: indexNative */).t.PWZOn4;
items3[3] = <TableRowGroup title={Reflect.apply(string, intl,
[PWZOn4])} hasIcons={false}><TableSwitchRow label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['5bK9vw'])} value={value5} onValueChange={RenderEmbeds.updateSetting} /></TableRowGroup>;
items3[4] = <TableRowGroup title={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.sMOuuS)} hasIcons={false}><TableSwitchRow label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['zge/fP'])} value={value6} onValueChange={RenderReactions.updateSetting} /></TableRowGroup>;
string = intl.string;
const BkuOO6 = (require(1244) /* metro dependency 1244: indexNative */).t.BkuOO6;
items3[5] = <TableRowGroup title={Reflect.apply(string, intl,
[BkuOO6])} description={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.p4IKE9)} hasIcons={false}><TableSwitchRow label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['3340dY'])} value={value8 !== false} onValueChange={onValueChange_105402} /></TableRowGroup>;
return (
<View style={styles.flex}>
<Form>
<Stack spacing={PX_24} style={object}>
{items3}
</Stack>
</Form>
</View>
);
}
function setLowQualityImageMode({videoUploadQuality, viewImageDescriptions, lowQualityImageMode, dataSavingMode}) { // fn#105409, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14052:5762, offset: 0x022b830d, size: 89 bytes, params: 2, frame: 20
trackSettingsUpdated('low_quality_image_mode', videoUploadQuality, viewImageDescriptions, lowQualityImageMode,
dataSavingMode);
const userSettingsActionCreators = importDefault(7896) /* metro dependency 7896: UserSettingsActionCreators */;
userSettingsActionCreators.updatedUnsyncedSettings({lowQualityImageMode: lowQualityImageMode});
}
function UserSettingsTextOnValueChange(a0) { // fn#105402, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14052:2227, owner: UserSettingsText.onValueChange, offset: 0x022b806a, size: 41 bytes, params: 2, frame: 12
const value = environment.__proto__;
(importDefault(7896) /* metro dependency 7896: UserSettingsActionCreators */).setShouldSyncTextSettings(a0);
}
function UserSettingsTextOnValueChange_105403(a0) { // fn#105403, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14052:2291, owner: UserSettingsText.onValueChange, offset: 0x022b8093, size: 56 bytes, params: 2, frame: 12
setDataSavingMode({videoUploadQuality: videoUploadQuality, viewImageDescriptions: env0_4,
lowQualityImageMode: lowQualityImageMode, dataSavingMode: a0});
}
function UserSettingsTextOnChange(a0) { // fn#105404, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14052:2426, owner: UserSettingsText.onChange, offset: 0x022b80cb, size: 56 bytes, params: 2, frame: 12
setVideoUploadQuality({videoUploadQuality: a0, viewImageDescriptions: env0_4,
lowQualityImageMode: lowQualityImageMode, dataSavingMode: dataSavingMode});
}
function renderNitroUpsellText() { // fn#105406, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14052:2726, owner: UserSettingsText.renderNitroUpsellText, offset: 0x022b813b, size: 272 bytes, params: 1, frame: 22
var environment;
let value = environment.__proto__;
const stylesBinding = styles;
const nitroUpsell = stylesBinding.nitroUpsell;
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
const iconProps = {source: importDefault(11060) /* metro dependency 11060 */};
const Icon2 = (require(1305) /* metro dependency 1305: native */).Icon;
const Sizes = Icon2.Sizes;
const SMALL = Sizes.SMALL;
iconProps.size = SMALL;
iconProps.style = stylesBinding.nitroIcon;
value = <Icon {...iconProps} />;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<View style={nitroUpsell}>
{value}
<Text
variant="text-sm/medium"
color="text-muted"
style={{marginLeft: 4}}
>
{intl.format((require(1244) /* metro dependency 1244: indexNative */).t.uW1zul,
{onClick: onClick_105407})}
</Text>
</View>
);
}
function renderNitroUpsellTextOnClick() { // fn#105407, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14052:2988, owner: UserSettingsText.renderNitroUpsellText.onClick, offset: 0x022b824b, size: 83 bytes, params: 1, frame: 14
const defaultImport = importDefault(7508) /* metro dependency 7508: UserSettingsModalActionCreators */;
const setSection = defaultImport.setSection;
let PREMIUM = UserSettingsSections.PREMIUM;
Reflect.apply(setSection, defaultImport, [PREMIUM]);
const binding = env1_5;
const push = binding.push;
PREMIUM = UserSettingsSections.PREMIUM;
Reflect.apply(push, binding, [PREMIUM, {isFromTextSection: true}]);
}