Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -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