Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,275 @@
|
||||
/* Metro module 9026; source: modules/phone/native/CodeField.tsx; dependencies: [57, 31, 27, 33, 4501, 697, 1305, 7981, 1244, 4578, 4573, 5467, 2] */
|
||||
function _fun70213(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#70213, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9211:6, offset: 0x01cf2a09, size: 601 bytes, params: 8, frame: 25
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_5 = value.View;
|
||||
const env0_6 = value.ScrollView;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_7 = value.jsx;
|
||||
const env0_8 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
const object = {};
|
||||
object.viewWrapper = {flex: 1};
|
||||
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
object.background = {backgroundColor: BACKGROUND_BASE_LOW, flex: 1};
|
||||
object.backgroundFlex = {'flex': 1, 'justifyContent': 'space-between'};
|
||||
object.container = {padding: 16};
|
||||
object.title = {textAlign: 'center'};
|
||||
object.subtitle = {'marginTop': 8, 'lineHeight': 18, 'textAlign': 'center'};
|
||||
object.inputContainer = {'marginTop': 20, 'width': '100%', 'alignItems': 'center'};
|
||||
object.codeContainer = {'maxWidth': 336, 'width': '100%', 'flexDirection': 'row', 'justifyContent': 'space-around'};
|
||||
object.spacer = {width: 4};
|
||||
const object3 = {'borderWidth': 1, 'borderRadius': 5, 'alignItems': 'center'};
|
||||
let BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
|
||||
object3.backgroundColor = BACKGROUND_BASE_LOWEST;
|
||||
BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
|
||||
object3.borderColor = BACKGROUND_BASE_LOWEST;
|
||||
object.inputWrapper = object3;
|
||||
const RED_400 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.RED_400;
|
||||
object.inputWrapperError = {borderColor: RED_400};
|
||||
object.input = {textAlign: 'center'};
|
||||
object.singleInputWrapper = {width: '100%'};
|
||||
object.singleInputButton = {'marginTop': 8, 'justifyContent': 'flex-end'};
|
||||
const env0_10 = Reflect.apply(createStyles, value, [object]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/phone/native/CodeField.tsx');
|
||||
exports.default = CodeField;
|
||||
exports.CodeType = {NUMERIC: 'numeric', ALPHANUMERIC: 'alphanumeric'};
|
||||
exports.CodeBlocks = CodeBlocks;
|
||||
}
|
||||
|
||||
function SingleCodeInput({loading, error, count, codeType = env0_9.NUMERIC, onCodeEntered, disabled, code, setCode}) { // fn#70214, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9211:1066, offset: 0x01cf2c62, size: 500 bytes, params: 2, frame: 29
|
||||
loading = !(loading === undefined) && loading;
|
||||
count = count === undefined ? 6 : count;
|
||||
const styles = useStyles();
|
||||
const TextInput = (require(7981) /* metro dependency 7981: TextInputNative */).TextInput;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const NUMERIC = env0_9.NUMERIC;
|
||||
const textInput = <TextInput errorMessage={error} value={code} autoCapitalize="characters" maxLength={count} accessibilityLabel={Reflect.apply(string,
|
||||
intl,
|
||||
[t['ysthA+']])} textContentType="oneTimeCode" keyboardType={codeType !== NUMERIC ? 'default' : 'number-pad'} onChange={onChange_70215} isDisabled={disabled} isClearable autoFocus />;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
return (
|
||||
<View style={styles.singleInputWrapper}>
|
||||
{textInput}
|
||||
<View style={styles.singleInputButton}>
|
||||
<Button
|
||||
loading={loading}
|
||||
variant="primary"
|
||||
size="lg"
|
||||
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13ofGu'])}
|
||||
onPress={function() {
|
||||
return onCodeEntered(code);
|
||||
}}
|
||||
disabled={code.length !== count || disabled}
|
||||
/>
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function CodeFieldInner({title, description, error, onCodeEntered, loading, count, codeType = env0_9.NUMERIC, actions, footer, backgroundStyle, disabled}) { // fn#70217, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9211:1783, offset: 0x01cf2ebf, size: 515 bytes, params: 2, frame: 37
|
||||
loading = !(loading === undefined) && loading;
|
||||
count = count === undefined ? 6 : count;
|
||||
const styles = useStyles();
|
||||
const [property, property2] = env0_3(env0_4.useState(''), 2);
|
||||
const items3 = [styles.background, backgroundStyle];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const items2 = [<Text style={styles.title} accessibilityRole="header" variant="heading-xl/extrabold" color="mobile-text-heading-primary">{title}</Text>];
|
||||
items2[1] = <Text style={styles.subtitle} variant="text-sm/medium" color="text-default">{description}</Text>;
|
||||
items2[2] = <View style={styles.inputContainer}><SingleCodeInput loading={loading} error={error} count={count} onCodeEntered={onCodeEntered} codeType={codeType} disabled={disabled} code={property} setCode={property2} /></View>;
|
||||
items2[3] = actions;
|
||||
return (
|
||||
<ScrollView
|
||||
style={items3}
|
||||
contentContainerStyle={styles.backgroundFlex}
|
||||
keyboardShouldPersistTaps="handled"
|
||||
alwaysBounceVertical={false}
|
||||
>
|
||||
<View style={styles.container}>
|
||||
{items2}
|
||||
</View>
|
||||
{((Component) => <Component>{footer}</Component>)(importDefault(5467) /* metro dependency 5467: KeyboardAwareView */)}
|
||||
</ScrollView>
|
||||
);
|
||||
}
|
||||
|
||||
function CodeField(a0) { // fn#70218, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9211:2661, offset: 0x01cf30c2, size: 123 bytes, params: 2, frame: 19
|
||||
const styles = useStyles();
|
||||
return a0.disableKeyboardAvoidingView ? <CodeFieldInner {...a0} /> : ((Component) => <Component style={styles.viewWrapper}><CodeFieldInner {...a0} /></Component>)(importDefault(5467) /* metro dependency 5467: KeyboardAwareView */);
|
||||
}
|
||||
|
||||
function CodeBlocks({hasError, onCodeEntered, count, codeType}) { // fn#70219, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9211:2853, offset: 0x01cf313d, size: 362 bytes, params: 2, frame: 22
|
||||
var environment;
|
||||
var r0;
|
||||
var r2;
|
||||
var value;
|
||||
var NUMERIC;
|
||||
var value7;
|
||||
reducibleJoin2: while (true) {
|
||||
if (count !== undefined) {
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value = 6;
|
||||
count = value;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (codeType !== undefined) {
|
||||
r0 = codeType;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value = environment;
|
||||
NUMERIC = env0_9.NUMERIC;
|
||||
r0 = NUMERIC;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
const env0_3 = r0;
|
||||
const styles = useStyles();
|
||||
const env0_4 = styles;
|
||||
let binding = env0_4;
|
||||
const useState = binding.useState;
|
||||
let Array = global.Array;
|
||||
const value2 = Array(count);
|
||||
const value4 = env0_3(Reflect.apply(useState, binding, [value2.fill('')]), 2);
|
||||
const property = value4[0];
|
||||
const env0_6 = value4[1];
|
||||
binding = env0_4;
|
||||
const useRef = binding.useRef;
|
||||
Array = global.Array;
|
||||
const value6 = Array(count);
|
||||
const env0_7 = Reflect.apply(useRef, binding, [value6.fill(null)]);
|
||||
const env0_8 = env0_4.useRef(onCodeEntered);
|
||||
env0_4.useEffect(_fun70220);
|
||||
env0_4.useEffect(_fun70221, [property]);
|
||||
if (0 < count) {
|
||||
r2 = 0;
|
||||
reducibleLoop5: while (true) {
|
||||
CodeBlocks_loop(r2);
|
||||
value7 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
if (value7 < count) {
|
||||
r2 = value7;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return <View style={styles.codeContainer} />;
|
||||
}
|
||||
|
||||
function SingleCodeInputOnChange(a0) { // fn#70215, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9211:1482, owner: SingleCodeInput.onChange, offset: 0x01cf2e56, size: 85 bytes, params: 2, frame: 14
|
||||
const binding = env0_0;
|
||||
const NUMERIC = env1_9.NUMERIC;
|
||||
setCode(a0.replace(binding === NUMERIC ? RegExp('\\D', 'g') : RegExp('[^A-Z0-9]', 'g'), ''));
|
||||
}
|
||||
|
||||
function _fun70221() { // fn#70221, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9211:3091, offset: 0x01cf32a7, size: 60 bytes, params: 1, frame: 14
|
||||
var current;
|
||||
var binding2;
|
||||
let binding = env0_5;
|
||||
if (((a0) => a0.every(_fun70223))(binding)) {
|
||||
binding = env0_8;
|
||||
current = binding.current;
|
||||
binding2 = env0_5;
|
||||
Reflect.apply(current, binding, [binding2.join('')]);
|
||||
}
|
||||
}
|
||||
|
||||
function CodeBlocks_loop(a0) { // fn#70224, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9211:3218, owner: CodeBlocks._loop, offset: 0x01cf3313, size: 406 bytes, params: 2, frame: 26
|
||||
var environment;
|
||||
var binding;
|
||||
var push;
|
||||
var value2;
|
||||
const env0_0 = a0;
|
||||
if (a0 === count / 2) {
|
||||
binding = env0_9;
|
||||
push = binding.push;
|
||||
value2 = environment.__proto__;
|
||||
Reflect.apply(push, binding, [<View style={styles.spacer} key="spacer" />]);
|
||||
}
|
||||
binding = env0_9;
|
||||
push = binding.push;
|
||||
const items2 = [styles.inputWrapper];
|
||||
items2[1] = hasError ? styles.inputWrapperError : null;
|
||||
const TextInput = (require(1305) /* metro dependency 1305: native */).TextInput;
|
||||
const binding2 = env0_3;
|
||||
const NUMERIC = env1_9.NUMERIC;
|
||||
Reflect.apply(push, binding, [<View style={items2} key={a0}><TextInput ref={ref_70225} style={[{height: 42,
|
||||
width: 252 / count}, styles.input]} keyboardType={binding2 !== NUMERIC ? 'default' : 'phone-pad'} autoFocus={a0 === 0} value={env0_5[a0]} onKeyPress={onKeyPress_70226} onChangeText={onChangeText} selection={{start: env0_5[a0].length, end: env0_5[a0].length}} autoCapitalize="characters" autoCorrect={false} /></View>]);
|
||||
}
|
||||
|
||||
function isCodeEntered(a0) { // fn#70222, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9211:3102, offset: 0x01cf32e3, size: 25 bytes, params: 2, frame: 11
|
||||
return a0.every(function(a0) {
|
||||
return a0.trim() !== '';
|
||||
});
|
||||
}
|
||||
|
||||
function _loopRef(a0) { // fn#70225, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9211:3374, owner: CodeBlocks._loop.ref, offset: 0x01cf34a9, size: 30 bytes, params: 2, frame: 3
|
||||
env1_7.current[env0_0] = a0;
|
||||
}
|
||||
|
||||
function _loopOnKeyPress(a0) { // fn#70226, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9211:3521, owner: CodeBlocks._loop.onKeyPress, offset: 0x01cf34c7, size: 29 bytes, params: 2, frame: 13
|
||||
onKeyPress_body(env0_0, a0);
|
||||
}
|
||||
|
||||
function _loopOnChangeText(a0) { // fn#70228, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9211:3770, owner: CodeBlocks._loop.onChangeText, offset: 0x01cf3587, size: 202 bytes, params: 2, frame: 17
|
||||
var r6;
|
||||
let value = a0;
|
||||
const binding = env0_0;
|
||||
if (value[0] !== env1_5[binding]) {
|
||||
r6 = value;
|
||||
} else {
|
||||
value = value.slice(1);
|
||||
r6 = value;
|
||||
}
|
||||
value = r6.replace('-', '');
|
||||
value = value.trim();
|
||||
value = value.toUpperCase();
|
||||
r6 = value !== '' ? value.split('') : [''];
|
||||
const binding2 = env1_5;
|
||||
const items3 = [];
|
||||
arraySpread(items3, binding2, 0, r6);
|
||||
const splice = items3.splice;
|
||||
const items2 = [binding, 1];
|
||||
arraySpread(items2, r6, 2, r6);
|
||||
apply(splice, items2, items3, r6);
|
||||
env1_6(items3.slice(0, count));
|
||||
}
|
||||
|
||||
function onKeyPress_body(a0, {nativeEvent}) { // fn#70227, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9211:3524, owner: CodeBlocks._loop.onKeyPress.body, offset: 0x01cf34e4, size: 163 bytes, params: 3, frame: 19
|
||||
var value;
|
||||
var binding;
|
||||
var binding2;
|
||||
var value2;
|
||||
var items2;
|
||||
var property;
|
||||
if (nativeEvent.key !== 'Backspace') {
|
||||
value = environment.__proto__.__proto__;
|
||||
property = env2_7.current[a0 + 1];
|
||||
if (property != null) {
|
||||
property.focus();
|
||||
}
|
||||
} else {
|
||||
value = environment.__proto__.__proto__;
|
||||
if (env2_5[a0] === '') {
|
||||
binding = env2_6;
|
||||
binding2 = env2_5;
|
||||
value2 = a0 - 1;
|
||||
items2 = [];
|
||||
arraySpread(items2, binding2, 0, undefined);
|
||||
items2[value2] = '';
|
||||
binding(items2);
|
||||
property = env2_7.current[a0 - 1];
|
||||
if (property != null) {
|
||||
property.focus();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,307 @@
|
||||
/* Metro module 9019; source: modules/phone/native/CountryCallingCodeSelect.tsx; dependencies: [57, 31, 27, 3837, 33, 4501, 697, 8973, 3838, 7705, 6590, 6238, 4573, 6984, 9020, 9021, 1244, 8671, 2] */
|
||||
function _fun70176(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#70176, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9204:6, offset: 0x01cf1608, size: 265 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const _arrayLikeToArray_70179 = function(a0, a1) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var value3;
|
||||
var length;
|
||||
var value5;
|
||||
var value = undefined;
|
||||
var value2 = value == null;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value2) {
|
||||
r0 = value2;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value3 = value > a0.length;
|
||||
r0 = value3;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (r0) {
|
||||
length = a0.length;
|
||||
r1 = length;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value = (0, global.Array)(r1);
|
||||
var value4 = 0;
|
||||
if (value4 < r1) {
|
||||
r2 = value4;
|
||||
reducibleLoop5: while (true) {
|
||||
value[r2] = a0[r2];
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
if (value5 < r1) {
|
||||
r2 = value5;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(27) /* metro dependency 27 */).View;
|
||||
const env0_6 = (require(3837) /* metro dependency 3837: CountryCodeUtils */).getI18NCountryName;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_7 = value.jsx;
|
||||
const env0_8 = value.jsxs;
|
||||
const env0_9 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(_fun70180);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/phone/native/CountryCallingCodeSelect.tsx');
|
||||
exports.default = CountryCallingCodeSelect;
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_70177(a0, a1) { // fn#70177, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9204:197, offset: 0x01cf1711, size: 372 bytes, params: 3, frame: 20
|
||||
var r6;
|
||||
var r9;
|
||||
var r5;
|
||||
var value3;
|
||||
var regexp;
|
||||
const env0_0 = a0;
|
||||
const Symbol = global.Symbol;
|
||||
let value = typeof Symbol !== 'undefined';
|
||||
let r1 = value && a0[global.Symbol.iterator];
|
||||
r1 = !r1 ? a0['@@iterator'] : r1;
|
||||
if (r1) {
|
||||
value = r1.call(a0);
|
||||
return value.next.bind(value);
|
||||
}
|
||||
const Array = global.Array;
|
||||
if (Array.isArray(a0)) {
|
||||
if (r1) {
|
||||
}
|
||||
return _fun70178;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_70179(a0, value);
|
||||
r5 = value;
|
||||
} else {
|
||||
value3 = ({}).toString.call(a0).slice(8, -1);
|
||||
r6 = value3 === 'Object' && a0.constructor;
|
||||
r9 = r6 ? a0.constructor.name : value3;
|
||||
if (r9 === 'Map') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Set') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Arguments') {
|
||||
value = _arrayLikeToArray_70179(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_70179(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun70178;
|
||||
}
|
||||
const TypeError = global.TypeError;
|
||||
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
|
||||
}
|
||||
|
||||
function _fun70180(a0) { // fn#70180, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9204:1136, offset: 0x01cf1885, size: 217 bytes, params: 2, frame: 17
|
||||
const object3 = {};
|
||||
const object4 = {};
|
||||
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
object4.backgroundColor = BACKGROUND_BASE_LOW;
|
||||
let space = (importDefault(697) /* metro dependency 697: native */).space;
|
||||
object4.paddingHorizontal = a0 ? space.PX_24 : space.PX_12;
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object4.paddingTop = PX_16;
|
||||
space = (importDefault(697) /* metro dependency 697: native */).space;
|
||||
object4.paddingBottom = a0 ? space.PX_24 : space.PX_16;
|
||||
object4.flex = 1;
|
||||
object3.container = object4;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object3.searchFieldContainer = {paddingBottom: PX_16};
|
||||
return object3;
|
||||
}
|
||||
|
||||
function CountryCallingCodeSelect({onCountrySelected, onClose}) { // fn#70181, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9204:1522, offset: 0x01cf195e, size: 530 bytes, params: 2, frame: 27
|
||||
var r5;
|
||||
var ViewEmptyState;
|
||||
var object;
|
||||
var intl;
|
||||
var value;
|
||||
const styles = useStyles((importDefault(8973) /* metro dependency 8973: useWideAuthView */)());
|
||||
const binding = env0_4;
|
||||
const [property, property2] = env0_3(binding.useState(''), 2);
|
||||
const value5 = binding.useMemo(_fun70182, []);
|
||||
const value6 = (importDefault(7705) /* metro dependency 7705: useScaledRowHeight */)();
|
||||
const {rows, sections} = binding.useMemo(_fun70185, [value5, property]);
|
||||
const value8 = binding.useCallback(_fun70186, [onClose, onCountrySelected, rows]);
|
||||
const SearchField = (require(6984) /* metro dependency 6984: SearchFieldNative */).SearchField;
|
||||
const view = <View style={styles.searchFieldContainer}><SearchField size="md" onChange={property2} /></View>;
|
||||
if (property === '') {
|
||||
value = importDefault(8671) /* metro dependency 8671: FastestListAndroid */;
|
||||
value = ((Component) => <Component sections={sections} renderItem={value8} itemSize={value6} estimatedListSize="windowSize" keyboardShouldPersistTaps="always" />)(value);
|
||||
r5 = value;
|
||||
} else if (rows.length === 0) {
|
||||
ViewEmptyState = importDefault(9020) /* metro dependency 9020: ViewEmptyState */;
|
||||
object = {source: importDefault(9021) /* metro dependency 9021 */};
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object.text = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.wEHnxW);
|
||||
r5 = <ViewEmptyState {...object} />;
|
||||
} else {
|
||||
value = importDefault(8671) /* metro dependency 8671: FastestListAndroid */;
|
||||
value = ((Component) => <Component sections={sections} renderItem={value8} itemSize={value6} estimatedListSize="windowSize" keyboardShouldPersistTaps="always" />)(value);
|
||||
r5 = value;
|
||||
}
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
{view}
|
||||
{r5}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun70182() { // fn#70182, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9204:1666, offset: 0x01cf1b70, size: 47 bytes, params: 1, frame: 11
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
return (importDefault(3838) /* metro dependency 3838: Countries */).flatMap(function(a0, a1) {
|
||||
var alpha2 = a0.alpha2;
|
||||
var env0_0 = alpha2;
|
||||
var phoneCountryCodes = a0.phoneCountryCodes;
|
||||
var env0_1 = a0.name;
|
||||
var env0_2 = a1;
|
||||
var env0_3 = getI18NCountryName(alpha2);
|
||||
return phoneCountryCodes.map(_fun70184);
|
||||
});
|
||||
}
|
||||
|
||||
function _fun70185() { // fn#70185, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9204:1866, offset: 0x01cf1c3c, size: 321 bytes, params: 1, frame: 25
|
||||
var r2;
|
||||
var r0;
|
||||
var value5;
|
||||
var length;
|
||||
var value6;
|
||||
var country;
|
||||
var code;
|
||||
var replace;
|
||||
var value7;
|
||||
var startsWith;
|
||||
var binding;
|
||||
var value8;
|
||||
var defaultImport;
|
||||
var toLowerCase;
|
||||
var value9;
|
||||
var name;
|
||||
var value10;
|
||||
var defaultImport2;
|
||||
var value11;
|
||||
var translatedName;
|
||||
var value12;
|
||||
var value13;
|
||||
let items2 = [];
|
||||
const value3 = _createForOfIteratorHelperLoose_70177(env0_3);
|
||||
const value4 = value3();
|
||||
let done = value4.done;
|
||||
if (!done) {
|
||||
r2 = value4;
|
||||
while (true) {
|
||||
value5 = r2.value;
|
||||
length = env0_2.length;
|
||||
value6 = length === 0;
|
||||
if (value6) {
|
||||
r0 = value6;
|
||||
} else {
|
||||
code = value5.country.code;
|
||||
value7 = code.replace(RegExp('\\+|\\s', 'g'), '');
|
||||
startsWith = value7.startsWith;
|
||||
binding = env0_2;
|
||||
replace = binding.replace;
|
||||
value8 = Reflect.apply(startsWith, value7, [Reflect.apply(replace, binding, [RegExp('\\+|\\s', 'g'),
|
||||
''])]);
|
||||
r0 = value8;
|
||||
}
|
||||
if (r0) {
|
||||
continue;
|
||||
}
|
||||
defaultImport = importDefault(6590) /* metro dependency 6590 */;
|
||||
binding = env0_2;
|
||||
value9 = binding.toLowerCase();
|
||||
country = value5.country;
|
||||
name = country.name;
|
||||
toLowerCase = name.toLowerCase;
|
||||
value10 = defaultImport(value9, Reflect.apply(toLowerCase, name, []));
|
||||
r0 = value10;
|
||||
if (r0) {
|
||||
continue;
|
||||
}
|
||||
defaultImport2 = importDefault(6590) /* metro dependency 6590 */;
|
||||
binding = env0_2;
|
||||
value11 = binding.toLowerCase();
|
||||
translatedName = value5.translatedName;
|
||||
toLowerCase = translatedName.toLowerCase;
|
||||
value12 = defaultImport2(value11, Reflect.apply(toLowerCase, translatedName, []));
|
||||
r0 = value12;
|
||||
if (!r0) {
|
||||
continue;
|
||||
}
|
||||
items2.push(value5);
|
||||
value13 = value3();
|
||||
done = value13.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
r2 = value13;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
const object2 = {rows: items2};
|
||||
items2 = [items2.length];
|
||||
object2.sections = items2;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun70186(a0, a1) { // fn#70186, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9204:2250, offset: 0x01cf1d7d, size: 169 bytes, params: 3, frame: 21
|
||||
const rowsBinding = rows;
|
||||
const {translatedName, country} = rowsBinding[a1];
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
const length = rowsBinding.length;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<TableRow
|
||||
start={a1 === 0}
|
||||
end={a1 === length - 1}
|
||||
label={translatedName}
|
||||
trailing={<Text variant="text-md/semibold">{country.code}</Text>}
|
||||
onPress={function() {
|
||||
onCountrySelected(country);
|
||||
if (onClose != null) {
|
||||
onClose();
|
||||
}
|
||||
}}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun70183({alpha2, phoneCountryCodes, name}, a1) { // fn#70183, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9204:1688, offset: 0x01cf1b9f, size: 74 bytes, params: 3, frame: 13
|
||||
const env0_2 = a1;
|
||||
const env0_3 = getI18NCountryName(alpha2);
|
||||
return phoneCountryCodes.map(_fun70184);
|
||||
}
|
||||
|
||||
function _fun70184(a0) { // fn#70184, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9204:1757, offset: 0x01cf1be9, size: 83 bytes, params: 2, frame: 17
|
||||
return {translatedName: env0_3, key: '' + require + '-' + a0, country: {code: a0, alpha2: alpha2, name: name}};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,130 @@
|
||||
/* Metro module 9017; source: modules/phone/native/FormPhoneOrEmail.tsx; dependencies: [31, 27, 33, 4501, 697, 5278, 1244, 4573, 8993, 8968, 8969, 8970, 2] */
|
||||
function _fun70160(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#70160, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9202:6, offset: 0x01cf0cf6, size: 385 bytes, params: 8, frame: 23
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(27) /* metro dependency 27 */).View;
|
||||
const value2 = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value2.jsx;
|
||||
const env0_6 = value2.jsxs;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
const INTERACTIVE_BACKGROUND_SELECTED = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_BACKGROUND_SELECTED;
|
||||
const env0_7 = Reflect.apply(createStyles, createStylesModule, [{label: {marginBottom: 8}, input: {'flexGrow': 1,
|
||||
'marginBottom': 8}, error: {marginBottom: 8}, hint: {marginBottom: 8},
|
||||
selectorOuterContainer: {overflow: 'hidden'}, selectorContainer: {'flex': 1, 'flexDirection': 'row'},
|
||||
selectorPressable: {justifyContent: 'center'}, selectorText: {alignSelf: 'center'},
|
||||
separator: {'borderLeftWidth': 1, 'borderLeftColor': null, 'marginHorizontal': 12, 'marginVertical': -4,
|
||||
borderLeftColor: INTERACTIVE_BACKGROUND_SELECTED}}]);
|
||||
value = value.forwardRef(_fun70162);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/phone/native/FormPhoneOrEmail.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function CountryCodeSelector({show, alpha2, countryCode, onPress}) { // fn#70161, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9202:575, offset: 0x01cf0e77, size: 383 bytes, params: 2, frame: 29
|
||||
var r0;
|
||||
var PressableOpacity;
|
||||
var intl;
|
||||
const styles = useStyles();
|
||||
const value3 = '';
|
||||
const value4 = value3 + (alpha2 ?? value3) + ' ' + countryCode;
|
||||
if (show) {
|
||||
var viewBindingProps = {style: styles.selectorOuterContainer};
|
||||
var viewBinding2Props = {style: styles.selectorContainer};
|
||||
PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
|
||||
var pressableOpacityProps = {onPress: onPress, style: styles.selectorPressable,
|
||||
androidRippleConfig: {borderless: true}, accessibilityRole: 'button', accessibilityLabel: value4};
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
pressableOpacityProps.accessibilityHint = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.GwAW3k);
|
||||
r0 = <View {...viewBindingProps}><View {...viewBinding2Props}><PressableOpacity {...pressableOpacityProps}>{((Text) => <Text style={styles.selectorText} variant="text-md/medium" color="mobile-text-heading-primary">{value4}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)}</PressableOpacity><View style={styles.separator} /></View></View>;
|
||||
} else {
|
||||
r0 = null;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun70162(a0, a1) { // fn#70162, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9202:1158, offset: 0x01cf0ff6, size: 734 bytes, params: 3, frame: 32
|
||||
var r7;
|
||||
const style = a0.style;
|
||||
const textInputStyle = a0.textInputStyle;
|
||||
const label = a0.label;
|
||||
const error = a0.error;
|
||||
let value = a0.value;
|
||||
const hint = a0.hint;
|
||||
const env0_0 = a0.onChangeText;
|
||||
const env0_1 = a0.alpha2;
|
||||
const countryCode = a0.countryCode;
|
||||
const env0_3 = a0.onPressCountrySelector;
|
||||
const forceMode = a0.forceMode;
|
||||
const object2 = {'style': 0, 'textInputStyle': 0, 'label': 0, 'error': 0, 'value': 0, 'hint': 0, 'onChangeText': 0,
|
||||
'alpha2': 0, 'countryCode': 0, 'onPressCountrySelector': 0, 'forceMode': 0};
|
||||
const value2 = null;
|
||||
silentSetPrototypeOf(object2, value2, undefined);
|
||||
const value3 = copyDataProperties({}, a0, object2, undefined);
|
||||
const closure = handleChangeText;
|
||||
const styles = useStyles();
|
||||
const env0_5 = (require(8993) /* metro dependency 8993: PhoneOrEmailUtils */).shouldShowCountryCodeSelector(forceMode,
|
||||
value);
|
||||
const binding = env0_3;
|
||||
const env0_7 = binding.useRef({handleChangeText: closure, value: value});
|
||||
binding.useEffect(_fun70164);
|
||||
binding.useEffect(_fun70165, [countryCode]);
|
||||
const items2 = [value2 != label ? ((Component) => <Component style={styles.label}>{label}</Component>)(importDefault(8968) /* metro dependency 8968: FreeFormLabel */) : value2];
|
||||
const FreeFormTextInput = importDefault(8969) /* metro dependency 8969: FreeFormTextInput */;
|
||||
const defaultImport2Props = {...value3};
|
||||
defaultImport2Props['renderLeadingComponent'] = renderLeadingComponent;
|
||||
defaultImport2Props['error'] = value2 != error;
|
||||
defaultImport2Props['ref'] = a1;
|
||||
defaultImport2Props['value'] = value;
|
||||
defaultImport2Props['style'] = [styles.input, textInputStyle];
|
||||
defaultImport2Props['onChangeText'] = closure;
|
||||
const PhoneOrEmailSelectorForceMode = (require(8993) /* metro dependency 8993: PhoneOrEmailUtils */).PhoneOrEmailSelectorForceMode;
|
||||
let PHONE = PhoneOrEmailSelectorForceMode.PHONE;
|
||||
defaultImport2Props['textContentType'] = forceMode !== PHONE ? 'emailAddress' : 'telephoneNumber';
|
||||
PHONE = PhoneOrEmailSelectorForceMode.PHONE;
|
||||
defaultImport2Props['keyboardType'] = forceMode !== PHONE ? 'email-address' : 'phone-pad';
|
||||
defaultImport2Props['accessibilityLabel'] = label;
|
||||
defaultImport2Props['accessibilityHint'] = hint;
|
||||
items2[1] = <FreeFormTextInput {...defaultImport2Props} />;
|
||||
if (value2 != error) {
|
||||
value = importDefault(8970) /* metro dependency 8970: FreeFormErrorLabel */;
|
||||
value = ((Component) => <Component style={styles.error}>{error}</Component>)(value);
|
||||
r7 = value;
|
||||
} else {
|
||||
r7 = value2;
|
||||
}
|
||||
items2[2] = r7;
|
||||
items2[3] = value2 != hint ? ((Text) => <Text style={styles.hint} variant="text-xs/medium" color="text-muted">{hint}</Text>)((require(4573) /* metro dependency 4573: Text */).Text) : value2;
|
||||
return (
|
||||
<View style={style}>
|
||||
{items2}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function handleChangeText(a0) { // fn#70163, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9202:1363, offset: 0x01cf12d4, size: 80 bytes, params: 2, frame: 15
|
||||
let value = environment.__proto__;
|
||||
value = Reflect.apply((require(8993) /* metro dependency 8993: PhoneOrEmailUtils */).shouldShowCountryCodeSelector,
|
||||
value, [forceMode, a0]);
|
||||
if (onChangeText != null) {
|
||||
onChangeText(a0, value ? countryCode : '');
|
||||
}
|
||||
}
|
||||
|
||||
function _fun70165() { // fn#70165, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9202:1579, offset: 0x01cf1339, size: 32 bytes, params: 1, frame: 11
|
||||
const current = env0_7.current;
|
||||
current.handleChangeText(current.value);
|
||||
}
|
||||
|
||||
function renderLeadingComponent() { // fn#70166, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9202:1757, offset: 0x01cf1359, size: 61 bytes, params: 1, frame: 14
|
||||
return (
|
||||
<CountryCodeSelector
|
||||
show={env0_5}
|
||||
alpha2={alpha2}
|
||||
countryCode={countryCode}
|
||||
onPress={onPressCountrySelector}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,129 @@
|
||||
/* Metro module 8992; source: modules/phone/native/PhoneOrEmailInput.tsx; dependencies: [57, 31, 33, 8993, 8994, 1244, 8996, 2] */
|
||||
function _fun70028(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#70028, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9177:6, offset: 0x01cebb2a, size: 169 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
|
||||
value = value.forwardRef(_fun70029);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/phone/native/PhoneOrEmailInput.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _fun70029(a0, a1) { // fn#70029, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9177:146, offset: 0x01cebbd3, size: 475 bytes, params: 3, frame: 28
|
||||
const onChange = a0.onChange;
|
||||
const alpha2 = a0.alpha2;
|
||||
const countryCode = a0.countryCode;
|
||||
const onPressCountrySelector = a0.onPressCountrySelector;
|
||||
const forceMode = a0.forceMode;
|
||||
const env0_3 = forceMode;
|
||||
const object2 = {'onChange': 0, 'alpha2': 0, 'countryCode': 0, 'onPressCountrySelector': 0, 'forceMode': 0};
|
||||
silentSetPrototypeOf(object2, null, undefined);
|
||||
const value = copyDataProperties({}, a0, object2, undefined);
|
||||
const value2 = undefined;
|
||||
const binding = env0_4;
|
||||
const value4 = '';
|
||||
var [property, env0_4] = env0_3(binding.useState(value4), 2);
|
||||
const value7 = binding.useRef(null);
|
||||
binding.useImperativeHandle(a1, function() {
|
||||
return {blur: _fun70031, focus: _fun70032, isFocused: _fun70033, setText: _fun70034, getText: _fun70035,
|
||||
measure: _fun70036, measureInWindow: _fun70037, measureLayout: _fun70038};
|
||||
}, []);
|
||||
const shouldShowCountryCodeSelector2 = (require(8993) /* metro dependency 8993: PhoneOrEmailUtils */).shouldShowCountryCodeSelector(forceMode,
|
||||
property);
|
||||
const value8 = binding.useCallback(_fun70039, [countryCode, forceMode, onChange]);
|
||||
binding.useEffect(_fun70040, [countryCode,
|
||||
(importDefault(8994) /* metro dependency 8994: useStableCallback */)(value8)]);
|
||||
const r6 = shouldShowCountryCodeSelector2 ? value4 + (alpha2 ?? value4) + ' ' + countryCode : value2;
|
||||
const value11 = env0_4.useMemo(_fun70041, [r6, onPressCountrySelector]);
|
||||
const SplitTextInput = (require(8996) /* metro dependency 8996: SplitTextInputNative */).SplitTextInput;
|
||||
return (
|
||||
<SplitTextInput
|
||||
{...value}
|
||||
{...{['ref']: value7}}
|
||||
{...{['onChange']: value8}}
|
||||
{...{['leadingText']: r6}}
|
||||
{...{['leadingPressableProps']: value11}}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun70030() { // fn#70030, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9177:322, offset: 0x01cebdae, size: 102 bytes, params: 1, frame: 3
|
||||
return {blur: blur_70031, focus: focus_70032, isFocused: isFocused_70033, setText: setText_70034,
|
||||
getText: getText_70035, measure: measure_70036, measureInWindow: measureInWindow_70037,
|
||||
measureLayout: measureLayout_70038};
|
||||
}
|
||||
|
||||
function _fun70039(a0) { // fn#70039, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9177:985, offset: 0x01cebf62, size: 89 bytes, params: 2, frame: 15
|
||||
env0_4(a0);
|
||||
const phoneOrEmailUtilsModule = require(8993) /* metro dependency 8993: PhoneOrEmailUtils */;
|
||||
if (onChange != null) {
|
||||
onChange(a0, phoneOrEmailUtilsModule.shouldShowCountryCodeSelector(forceMode, a0) ? countryCode : '');
|
||||
}
|
||||
}
|
||||
|
||||
function _fun70040() { // fn#70040, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9177:1101, offset: 0x01cebfbb, size: 60 bytes, params: 1, frame: 14
|
||||
const binding = env0_6;
|
||||
const current = env0_5.current;
|
||||
const value = undefined;
|
||||
binding((current == null ? value : current.getText()) ?? '');
|
||||
return value;
|
||||
}
|
||||
|
||||
function _fun70041() { // fn#70041, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9177:1231, offset: 0x01cebff7, size: 113 bytes, params: 1, frame: 15
|
||||
const object2 = {};
|
||||
object2.onPress = onPressCountrySelector;
|
||||
object2.accessibilityRole = 'button';
|
||||
object2.accessibilityLabel = env0_7 ?? '';
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const GwAW3k = (require(1244) /* metro dependency 1244: indexNative */).t.GwAW3k;
|
||||
object2.accessibilityHint = Reflect.apply(string, intl, [GwAW3k]);
|
||||
return object2;
|
||||
}
|
||||
|
||||
function blur_70031() { // fn#70031, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9177:333, offset: 0x01cebe14, size: 35 bytes, params: 1, frame: 10
|
||||
const value = environment.__proto__;
|
||||
return env1_5.current?.blur();
|
||||
}
|
||||
|
||||
function focus_70032() { // fn#70032, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9177:394, offset: 0x01cebe37, size: 35 bytes, params: 1, frame: 10
|
||||
const value = environment.__proto__;
|
||||
return env1_5.current?.focus();
|
||||
}
|
||||
|
||||
function isFocused_70033() { // fn#70033, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9177:460, offset: 0x01cebe5a, size: 45 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
const isFocused = env1_5.current?.isFocused();
|
||||
return isFocused != null && isFocused;
|
||||
}
|
||||
|
||||
function setText_70034(a0) { // fn#70034, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9177:543, offset: 0x01cebe87, size: 45 bytes, params: 2, frame: 12
|
||||
env1_4(a0);
|
||||
const current = env1_5.current;
|
||||
if (current != null) {
|
||||
current.setText(a0);
|
||||
}
|
||||
}
|
||||
|
||||
function getText_70035() { // fn#70035, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9177:601, offset: 0x01cebeb4, size: 49 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
return env1_5.current?.getText() ?? '';
|
||||
}
|
||||
|
||||
function measure_70036(a0) { // fn#70036, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9177:684, offset: 0x01cebee5, size: 39 bytes, params: 2, frame: 12
|
||||
const value = environment.__proto__;
|
||||
return env1_5.current?.measure(a0);
|
||||
}
|
||||
|
||||
function measureInWindow_70037(a0) { // fn#70037, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9177:758, offset: 0x01cebf0c, size: 39 bytes, params: 2, frame: 12
|
||||
const value = environment.__proto__;
|
||||
return env1_5.current?.measureInWindow(a0);
|
||||
}
|
||||
|
||||
function measureLayout_70038(a0, a1, a2) { // fn#70038, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9177:838, offset: 0x01cebf33, size: 47 bytes, params: 4, frame: 16
|
||||
const value = environment.__proto__;
|
||||
return env1_5.current?.measureLayout(a0, a1, a2);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user