64 lines
4.3 KiB
TypeScript
64 lines
4.3 KiB
TypeScript
/* Metro module 9018; source: modules/verification/native/components/CountrySelectModal.tsx; dependencies: [31, 33, 1244, 5282, 5080, 9019, 9016, 5459, 9022, 5280, 2] */
|
|
function _fun70167(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#70167, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9203:6, offset: 0x01cf1396, size: 142 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(33) /* metro dependency 33 */).jsx;
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/verification/native/components/CountrySelectModal.tsx');
|
|
exports.default = CountrySelectModal;
|
|
}
|
|
|
|
function CountrySelectModal() { // fn#70168, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9203:226, offset: 0x01cf1424, size: 109 bytes, params: 1, frame: 15
|
|
const binding = env0_3;
|
|
const value2 = binding.useMemo(function() {
|
|
return _fun70170();
|
|
}, []);
|
|
binding.useEffect(function() {
|
|
return _fun70175;
|
|
}, []);
|
|
const Navigator = (require(5280) /* metro dependency 5280: NavigatorNative */).Navigator;
|
|
return <Navigator screens={value2} initialRouteName="COUNTRY_SELECT" />;
|
|
}
|
|
|
|
function _fun70169() { // fn#70169, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9203:273, offset: 0x01cf1491, size: 17 bytes, params: 1, frame: 9
|
|
return getScreens_70170();
|
|
}
|
|
|
|
function _fun70174() { // fn#70174, offset: 0x01cf15be, size: 11 bytes, params: 1, frame: 1
|
|
return _fun70175;
|
|
}
|
|
|
|
function getScreens_70170() { // fn#70170, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9203:277, offset: 0x01cf14a2, size: 141 bytes, params: 1, frame: 17
|
|
const object = {};
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
object.title = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.gzXECH);
|
|
object.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton((importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop);
|
|
object.render = render_70171;
|
|
return {COUNTRY_SELECT: object};
|
|
}
|
|
|
|
function _fun70175() { // fn#70175, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9203:550, offset: 0x01cf15c9, size: 63 bytes, params: 1, frame: 15
|
|
let value = environment.__proto__.__proto__;
|
|
value = importDefault(5459) /* metro dependency 5459: RunAfterInteractionsUtils */;
|
|
value.runAfterInteractions((importDefault(9022) /* metro dependency 9022: PhoneVerificationActionCreators */).setCountrySelectorClosed,
|
|
400);
|
|
}
|
|
|
|
function getScreens_70170Render() { // fn#70171, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9203:426, owner: getScreens_70170.render, offset: 0x01cf152f, size: 65 bytes, params: 1, frame: 15
|
|
var environment;
|
|
const value = environment.__proto__.__proto__.__proto__;
|
|
return ((Component) => <Component onClose={onClose_70172} onCountrySelected={onCountrySelected_70173} />)(importDefault(9019) /* metro dependency 9019: CountryCallingCodeSelect */);
|
|
}
|
|
|
|
function renderOnClose_70172() { // fn#70172, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9203:449, owner: getScreens_70170.render.onClose, offset: 0x01cf1570, size: 37 bytes, params: 1, frame: 11
|
|
const value = environment.__proto__.__proto__.__proto__.__proto__;
|
|
return (importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop();
|
|
}
|
|
|
|
function renderOnCountrySelected(a0) { // fn#70173, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9203:485, owner: getScreens_70170.render.onCountrySelected, offset: 0x01cf1595, size: 41 bytes, params: 2, frame: 11
|
|
const value = environment.__proto__.__proto__.__proto__.__proto__;
|
|
return (importDefault(9016) /* metro dependency 9016: PhoneActionCreators */).setCountryCode(a0);
|
|
}
|
|
|