Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,185 @@
|
||||
/* 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] */
|
||||
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 */;
|
||||
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;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_12 = value.jsx;
|
||||
const env0_13 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.contentContainer = {'paddingHorizontal': null, 'flexGrow': 1, 'display': 'flex', 'alignContent': 'center',
|
||||
'justifyContent': 'center', paddingHorizontal: PX_16};
|
||||
object2.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 = {};
|
||||
let PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object3.marginTop = PX_24;
|
||||
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object3.marginBottom = PX_24;
|
||||
object2.description = object3;
|
||||
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object2.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 = {};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object4.paddingHorizontal = PX_16;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object4.paddingVertical = PX_16;
|
||||
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object4.marginTop = PX_24;
|
||||
BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
object4.backgroundColor = BACKGROUND_BASE_LOW;
|
||||
object4.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');
|
||||
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;
|
||||
}
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user