This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

@@ -1,20 +1,32 @@
/* Metro module 15856; source: modules/user_required_action/native/NewTermsModal.tsx; dependencies: [5, 57, 31, 27, 1373, 661, 33, 4501, 697, 6802, 1244, 5076, 1585, 5286, 4571, 8061, 8742, 480, 4573, 6766, 4578, 8792, 9139, 2] */
import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import UserRequiredActionStore from '../../../stores/UserRequiredActionStore.tsx'; /* Metro dependency 1373 */
import UseSafeAreaInsetsNative from '../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */
import AuthenticationActionCreators from '../../../actions/AuthenticationActionCreators.tsx'; /* Metro dependency 5076 */
import UseTrackImpression from '../../app_analytics/useTrackImpression.tsx'; /* Metro dependency 8742 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as AnalyticsUtilsModule from '../../../external/discord_common/js/packages/analytics-utils/AnalyticsUtils.tsx'; /* Metro dependency 480 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as UseBackPressHandlerModule from '../../routing/native/useBackPressHandler.tsx'; /* Metro dependency 4571 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as UseNavigatorBackPressHandlerNativeModule from '../../../design/components/Navigator/native/useNavigatorBackPressHandler.native.tsx'; /* Metro dependency 5286 */
import * as TextWithIOSLinkWorkaroundModule from '../../a11y/native/TextWithIOSLinkWorkaround.tsx'; /* Metro dependency 6766 */
import * as ShowSimpleActionSheetModule from '../../action_sheet/native/showSimpleActionSheet.tsx'; /* Metro dependency 6802 */
function _fun121957(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#121957, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16064:6, offset: 0x0255540f, size: 675 bytes, params: 8, frame: 23
var object2;
const env0_0 = require;
const handleTouch = function() {
Keyboard.dismiss();
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const env0_4 = importDefault(57) /* metro dependency 57 */;
const env0_5 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
let value = ReactNativeModule;
const env0_6 = value.View;
const env0_7 = value.Keyboard;
const env0_8 = value.ScrollView;
const userRequiredActionStore = importDefault(1373) /* metro dependency 1373: UserRequiredActionStore */;
value = require(661) /* metro dependency 661: Constants */;
const env0_10 = value.MarketingURLs;
const env0_11 = value.UserRequiredActions;
@@ -23,163 +35,199 @@ function _fun121957(global, require, importDefault, importAll, module, exports,
const env0_13 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
object = {};
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.contentContainer = {'paddingHorizontal': null, 'flexGrow': 1, 'display': 'flex', 'alignContent': 'center',
object.contentContainer = {'paddingHorizontal': null, 'flexGrow': 1, 'display': 'flex', 'alignContent': 'center',
'justifyContent': 'center', paddingHorizontal: PX_16};
object2.scrollView = {flex: 1};
object.scrollView = {flex: 1};
let BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object2.container = {backgroundColor: BACKGROUND_BASE_LOW, flex: 1};
const object3 = {};
object.container = {backgroundColor: BACKGROUND_BASE_LOW, flex: 1};
const object5 = {};
let PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object3.marginTop = PX_24;
object5.marginTop = PX_24;
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object3.marginBottom = PX_24;
object2.description = object3;
object5.marginBottom = PX_24;
object.description = object5;
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object2.agreementDescription = {marginTop: PX_24};
object.agreementDescription = {marginTop: PX_24};
const INTERACTIVE_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_DEFAULT;
object2.navbarRight = {'position': 'absolute', 'right': 0, tintColor: INTERACTIVE_TEXT_DEFAULT};
const object4 = {};
object.navbarRight = {'position': 'absolute', 'right': 0, tintColor: INTERACTIVE_TEXT_DEFAULT};
const object6 = {};
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object4.paddingHorizontal = PX_16;
object6.paddingHorizontal = PX_16;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object4.paddingVertical = PX_16;
object6.paddingVertical = PX_16;
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object4.marginTop = PX_24;
object6.marginTop = PX_24;
BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object4.backgroundColor = BACKGROUND_BASE_LOW;
object4.borderTopWidth = 1;
object6.backgroundColor = BACKGROUND_BASE_LOW;
object6.borderTopWidth = 1;
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
object4.borderTopColor = BORDER_SUBTLE;
object2.stickyFooter = object4;
const env0_14 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_required_action/native/NewTermsModal.tsx');
object6.borderTopColor = BORDER_SUBTLE;
object.stickyFooter = object6;
const env0_14 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/user_required_action/native/NewTermsModal.tsx');
exports.default = NewTermsModal;
}
function handleMoreActions() { // fn#121959, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16064:995, offset: 0x025556c7, size: 139 bytes, params: 1, frame: 18
const value = require(6802) /* metro dependency 6802: showSimpleActionSheet */;
const showSimpleActionSheet = value.showSimpleActionSheet;
const object = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['2jxGer']);
object.isDestructive = true;
object.onPress = onPress_121960;
Reflect.apply(showSimpleActionSheet, value, [{'key': 'NewTermsModalMore', 'options': null, 'hasIcons': false,
options: [object]}]);
}
function NewTermsModal() { // fn#121961, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16064:1224, offset: 0x0255577e, size: 1389 bytes, params: 1, frame: 38
var r0;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
var items3;
const TextWithIOSLinkWorkaround = (require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround;
var format;
var items4;
var Button;
var object19;
var TouchableHitBox;
var object2;
var navbarRight;
const styles = useStyles();
const {bottom, top} = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)();
const binding = env0_5;
const value3 = binding.useMemo(function() {
return UserRequiredActionStore.getAction();
}, []);
const [property, env0_1] = env0_4(binding.useState(false), 2);
const useNavigatorBackPressHandlerNativeModule = require(5286) /* metro dependency 5286: useNavigatorBackPressHandlerNative */;
const useNavigatorBackPressHandler = useNavigatorBackPressHandlerNativeModule.useNavigatorBackPressHandler;
const BackPressHandler = (require(4571) /* metro dependency 4571: useBackPressHandler */).BackPressHandler;
Reflect.apply(useNavigatorBackPressHandler, useNavigatorBackPressHandlerNativeModule, [BackPressHandler.minimize]);
const env0_2 = binding.useCallback(env0_3(_fun121964), []);
const defaultImport = importDefault(8742) /* metro dependency 8742: useTrackImpression */;
const object3 = {};
const ImpressionTypes = (require(480) /* metro dependency 480: AnalyticsUtils */).ImpressionTypes;
const VIEW = ImpressionTypes.VIEW;
object3.type = VIEW;
const ImpressionNames = (require(480) /* metro dependency 480: AnalyticsUtils */).ImpressionNames;
const USER_AGREEMENTS = ImpressionNames.USER_AGREEMENTS;
object3.name = USER_AGREEMENTS;
object3.properties = {required_action: value3};
defaultImport(object3, {}, []);
const value7 = null;
if (value7 == value3) {
r0 = value7;
} else {
var viewProps = {style: [styles.container, {paddingTop: top, paddingBottom: bottom}]};
var scrollViewBindingProps = {style: [styles.scrollView], contentContainerStyle: styles.contentContainer,
onTouchStart: handleTouch};
string = intl.string;
items3 = [<Text maxFontSizeMultiplier={2} variant="heading-xxl/bold">{Reflect.apply(string, intl,
[t['7glvXu']])}</Text>];
format = intl.format;
items3[1] = <TextWithIOSLinkWorkaround variant="text-md/normal" style={styles.description}>{Reflect.apply(format,
intl, [t.CN0Hvb, {url: MarketingURLs.TERMS_SUMMARY}])}</TextWithIOSLinkWorkaround>;
format = intl.format;
items3[2] = <TextWithIOSLinkWorkaround variant="text-md/normal">{Reflect.apply(format, intl, [t.iw0hFi,
{url: MarketingURLs.TERMS}])}</TextWithIOSLinkWorkaround>;
format = intl.format;
items3[3] = <TextWithIOSLinkWorkaround variant="text-md/normal">{Reflect.apply(format, intl, [t['36klnD'],
{url: MarketingURLs.PAID_TERMS}])}</TextWithIOSLinkWorkaround>;
format = intl.format;
items3[4] = <TextWithIOSLinkWorkaround variant="text-md/normal">{Reflect.apply(format, intl, [t.TquFBF,
{url: MarketingURLs.PRIVACY}])}</TextWithIOSLinkWorkaround>;
format = intl.format;
items3[5] = <TextWithIOSLinkWorkaround variant="text-md/normal">{Reflect.apply(format, intl, [t.ia96Tb,
{url: MarketingURLs.GUIDELINES}])}</TextWithIOSLinkWorkaround>;
string = intl.string;
items3[6] = <Text variant="text-md/normal" style={styles.agreementDescription}>{Reflect.apply(string, intl,
[t['+USXQE']])}</Text>;
items4 = [<ScrollView {...scrollViewBindingProps}>{items3}</ScrollView>];
var viewBindingProps = {style: styles.stickyFooter};
Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
items4[1] = <View {...viewBindingProps}><Button loading={property} onPress={onPress_121965} text={intl.string(t['+TBKL1'])} /></View>;
TouchableHitBox = importDefault(8792) /* metro dependency 8792: TouchableHitBox */;
object2 = {};
navbarRight = styles.navbarRight;
object2.style = [navbarRight, {top: top}];
object2.source = importDefault(9139) /* metro dependency 9139 */;
navbarRight = styles.navbarRight;
object2.color = navbarRight.tintColor;
object2.onPress = handleMoreActions;
object2.accessibilityRole = 'button';
object2.accessibilityLabel = intl.string(t['UKOtz+']);
items4[2] = <TouchableHitBox {...object2} />;
r0 = <View {...viewProps}>{items4}</View>;
}
return r0;
}
function handleMoreActionsOnPress() { // fn#121960, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16064:1163, owner: handleMoreActions.onPress, offset: 0x02555752, size: 44 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (importDefault(5076) /* metro dependency 5076: AuthenticationActionCreators */).logout('new_terms_modal');
}
function* _fun121964() { // fn#121964, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16064:1464, offset: 0x02555cf6, size: 84 bytes, params: 1, frame: 14
if (true) {
value = environment.__proto__;
importDefault(true);
var value4 = env2_0(env2_2[15]);
yield value4.acceptAgreements();
var value5 = undefined;
if (false) {
return value5;
function handleMoreActions() { // fn#121959, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16064:995, offset: 0x025556c7, size: 139 bytes, params: 1, frame: 18
const showSimpleActionSheet = ShowSimpleActionSheetModule.showSimpleActionSheet;
const object2 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['2jxGer']);
object2.isDestructive = true;
object2.onPress = onPress_121960;
Reflect.apply(showSimpleActionSheet, ShowSimpleActionSheetModule, [{'key': 'NewTermsModalMore', 'options': null, 'hasIcons': false,
options: [object2]}]);
function handleMoreActionsOnPress() { // fn#121960, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16064:1163, owner: handleMoreActions.onPress, offset: 0x02555752, size: 44 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (AuthenticationActionCreators).logout('new_terms_modal');
}
importDefault(value5);
}
}
function NewTermsModalOnPress() { // fn#121965, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16064:2857, owner: NewTermsModal.onPress, offset: 0x02555d4a, size: 38 bytes, params: 1, frame: 10
const binding = env0_0;
const AGREEMENTS = UserRequiredActions.AGREEMENTS;
if (binding === AGREEMENTS) {
env0_2();
}
function NewTermsModal() { // fn#121961, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16064:1224, offset: 0x0255577e, size: 1389 bytes, params: 1, frame: 38
var r0;
const Text = (TextModule).Text;
const intl = (IndexNativeModule).intl;
var string;
const t = (IndexNativeModule).t;
var items3;
const TextWithIOSLinkWorkaround = (TextWithIOSLinkWorkaroundModule).TextWithIOSLinkWorkaround;
var format;
var items4;
var Button;
var object2;
var TouchableHitBox;
var object;
var navbarRight;
const styles = useStyles();
const {bottom, top} = (UseSafeAreaInsetsNative)();
const value3 = ReactModule.useMemo(function() {
return UserRequiredActionStore.getAction();
}, []);
const [property, env0_1] = Module00057(ReactModule.useState(false), 2);
const useNavigatorBackPressHandler = UseNavigatorBackPressHandlerNativeModule.useNavigatorBackPressHandler;
const BackPressHandler = (UseBackPressHandlerModule).BackPressHandler;
Reflect.apply(useNavigatorBackPressHandler, UseNavigatorBackPressHandlerNativeModule, [BackPressHandler.minimize]);
const env0_2 = ReactModule.useCallback(Module00005(_fun121964), []);
const defaultImport = UseTrackImpression;
const object5 = {};
const ImpressionTypes = (AnalyticsUtilsModule).ImpressionTypes;
const VIEW = ImpressionTypes.VIEW;
object5.type = VIEW;
const ImpressionNames = (AnalyticsUtilsModule).ImpressionNames;
const USER_AGREEMENTS = ImpressionNames.USER_AGREEMENTS;
object5.name = USER_AGREEMENTS;
object5.properties = {required_action: value3};
defaultImport(object5, {}, []);
const value7 = null;
if (value7 == value3) {
r0 = value7;
} else {
var viewProps = {style: [styles.container, {paddingTop: top, paddingBottom: bottom}]};
var scrollViewBindingProps = {style: [styles.scrollView], contentContainerStyle: styles.contentContainer,
onTouchStart: handleTouch};
string = intl.string;
items3 = [
<Text maxFontSizeMultiplier={2} variant="heading-xxl/bold">
{Reflect.apply(string, intl, [t['7glvXu']])}
</Text>,
];
format = intl.format;
items3[1] = (
<TextWithIOSLinkWorkaround variant="text-md/normal" style={styles.description}>
{Reflect.apply(format, intl, [t.CN0Hvb, {url: MarketingURLs.TERMS_SUMMARY}])}
</TextWithIOSLinkWorkaround>
);
format = intl.format;
items3[2] = (
<TextWithIOSLinkWorkaround variant="text-md/normal">
{Reflect.apply(format, intl, [t.iw0hFi, {url: MarketingURLs.TERMS}])}
</TextWithIOSLinkWorkaround>
);
format = intl.format;
items3[3] = (
<TextWithIOSLinkWorkaround variant="text-md/normal">
{Reflect.apply(format, intl, [t['36klnD'], {url: MarketingURLs.PAID_TERMS}])}
</TextWithIOSLinkWorkaround>
);
format = intl.format;
items3[4] = (
<TextWithIOSLinkWorkaround variant="text-md/normal">
{Reflect.apply(format, intl, [t.TquFBF, {url: MarketingURLs.PRIVACY}])}
</TextWithIOSLinkWorkaround>
);
format = intl.format;
items3[5] = (
<TextWithIOSLinkWorkaround variant="text-md/normal">
{Reflect.apply(format, intl, [t.ia96Tb, {url: MarketingURLs.GUIDELINES}])}
</TextWithIOSLinkWorkaround>
);
string = intl.string;
items3[6] = (
<Text variant="text-md/normal" style={styles.agreementDescription}>
{Reflect.apply(string, intl, [t['+USXQE']])}
</Text>
);
items4 = [
<ScrollView {...scrollViewBindingProps}>
{items3}
</ScrollView>,
];
var viewBindingProps = {style: styles.stickyFooter};
Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
items4[1] = (
<View {...viewBindingProps}>
<Button
loading={property}
onPress={onPress_121965}
text={intl.string(t['+TBKL1'])}
/>
</View>
);
TouchableHitBox = importDefault(8792) /* metro dependency 8792: TouchableHitBox */;
object = {};
navbarRight = styles.navbarRight;
object.style = [navbarRight, {top: top}];
object.source = importDefault(9139) /* metro dependency 9139 */;
navbarRight = styles.navbarRight;
object.color = navbarRight.tintColor;
object.onPress = handleMoreActions;
object.accessibilityRole = 'button';
object.accessibilityLabel = intl.string(t['UKOtz+']);
items4[2] = <TouchableHitBox {...object} />;
r0 = (
<View {...viewProps}>
{items4}
</View>
);
}
return r0;
function* _fun121964() { // fn#121964, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16064:1464, offset: 0x02555cf6, size: 84 bytes, params: 1, frame: 14
if (true) {
value = environment.__proto__;
importDefault(true);
var value4 = env2_0(env2_2[15]);
yield value4.acceptAgreements();
var value5 = undefined;
if (false) {
return value5;
}
importDefault(value5);
}
}
function NewTermsModalOnPress() { // fn#121965, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16064:2857, owner: NewTermsModal.onPress, offset: 0x02555d4a, size: 38 bytes, params: 1, frame: 10
const binding = env0_0;
const AGREEMENTS = UserRequiredActions.AGREEMENTS;
if (binding === AGREEMENTS) {
env0_2();
}
}
}
}
global.__d(_fun121957, 15856, [5, 57, 31, 27, 1373, 661, 33, 4501, 697, 6802, 1244, 5076, 1585, 5286, 4571, 8061,
8742, 480, 4573, 6766, 4578, 8792, 9139,
2]) /* metro module 15856, dependencies: [5, 57, 31, 27, 1373, 661, 33, 4501, 697, 6802, 1244, 5076, 1585, 5286, 4571, 8061, 8742, 480, 4573, 6766, 4578, 8792, 9139, 2] */;