Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,97 @@
|
||||
/* Metro module 11470; source: modules/safety_hub/native/ClassificationDetailModal.tsx; dependencies: [31, 661, 11471, 33, 4501, 697, 5080, 5282, 11472, 7007, 11503, 11480, 1485, 5280, 1244, 2] */
|
||||
function _fun87812(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87812, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11656:6, offset: 0x01fcc2a1, size: 268 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(661) /* metro dependency 661: Constants */).UserSettingsSections;
|
||||
const env0_6 = (require(11471) /* metro dependency 11471: SettingsAccountConstants */).AccountSettingsTabs;
|
||||
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
|
||||
object = {CLASSIFICATION_DETAIL: 'CLASSIFICATION_DETAIL'};
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
const BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
|
||||
const env0_9 = Reflect.apply(createStyles, createStylesModule,
|
||||
[{headerStyle: {backgroundColor: BACKGROUND_BASE_LOWER}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_hub/native/ClassificationDetailModal.tsx');
|
||||
exports.default = ClassificationDetailModal;
|
||||
}
|
||||
|
||||
function ClassificationDetailModal({classificationId, source, shouldRedirectToAccountStanding}) { // fn#87813, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11656:453, offset: 0x01fcc3ad, size: 293 bytes, params: 2, frame: 22
|
||||
shouldRedirectToAccountStanding = !(shouldRedirectToAccountStanding === undefined) && shouldRedirectToAccountStanding;
|
||||
const styles = useStyles();
|
||||
const value2 = (require(11503) /* metro dependency 11503: useSafetyHubInitialized */).useSafetyHubInitialized();
|
||||
const binding = value2;
|
||||
binding.useEffect(_fun87814, [value2]);
|
||||
(require(1485) /* metro dependency 1485 */).useIsFocused();
|
||||
const value3 = binding.useMemo(function() {
|
||||
return _fun87816(classificationId, shouldRedirectToAccountStanding, styles, source);
|
||||
}, [classificationId, shouldRedirectToAccountStanding, styles, source]);
|
||||
const Navigator = (require(5280) /* metro dependency 5280: NavigatorNative */).Navigator;
|
||||
const CLASSIFICATION_DETAIL = env0_8.CLASSIFICATION_DETAIL;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<Navigator
|
||||
screens={value3}
|
||||
initialRouteName={CLASSIFICATION_DETAIL}
|
||||
headerBackTitle={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13/7kX'])}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun87814() { // fn#87814, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11656:616, offset: 0x01fcc4d2, size: 49 bytes, params: 1, frame: 11
|
||||
var value;
|
||||
if (!env0_4) {
|
||||
value = environment.__proto__;
|
||||
value = importAll(11480) /* metro dependency 11480: SafetyHubActionCreators */;
|
||||
value.getSafetyHubData();
|
||||
}
|
||||
}
|
||||
|
||||
function _fun87815() { // fn#87815, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11656:700, offset: 0x01fcc503, size: 36 bytes, params: 1, frame: 17
|
||||
return getScreens_87816(classificationId, shouldRedirectToAccountStanding, styles, source);
|
||||
}
|
||||
|
||||
function getScreens_87816(a0, a1, {headerStyle}, a3) { // fn#87816, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11656:704, offset: 0x01fcc527, size: 134 bytes, params: 5, frame: 16
|
||||
var environment;
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const env0_2 = a3;
|
||||
const closure = getScreens_87816CloseModal;
|
||||
const value = environment.__proto__.__proto__;
|
||||
const CLASSIFICATION_DETAIL = env2_8.CLASSIFICATION_DETAIL;
|
||||
const object = {};
|
||||
object.headerStyle = headerStyle;
|
||||
object.headerTitle = function() {
|
||||
return null;
|
||||
};
|
||||
object.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(closure);
|
||||
object.render = render_87819;
|
||||
return {[CLASSIFICATION_DETAIL]: object};
|
||||
}
|
||||
|
||||
function getScreens_87816CloseModal() { // fn#87817, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11656:748, owner: getScreens_87816.closeModal, offset: 0x01fcc5ad, size: 37 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return (importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop();
|
||||
}
|
||||
|
||||
function getScreens_87816Render() { // fn#87819, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11656:906, owner: getScreens_87816.render, offset: 0x01fcc5d2, size: 85 bytes, params: 1, frame: 16
|
||||
var environment;
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return ((Component) => <Component classificationId={env0_0} source={importAll} onClose={onClose_87820} onError={function() {
|
||||
getScreens_87816CloseModal();
|
||||
require(dependencyMap[9]).openUserSettings({screen: UserSettingsSections.ACCOUNT,
|
||||
params: {initialTab: AccountSettingsTabs.STANDING}});
|
||||
}} />)(importDefault(11472) /* metro dependency 11472: ClassificationDetail */);
|
||||
}
|
||||
|
||||
function renderOnClose_87820() { // fn#87820, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11656:957, owner: getScreens_87816.render.onClose, offset: 0x01fcc627, size: 95 bytes, params: 1, frame: 14
|
||||
getScreens_87816CloseModal();
|
||||
if (require) {
|
||||
value = environment.__proto__.__proto__.__proto__.__proto__;
|
||||
(require(7007) /* metro dependency 7007: openUserSettings */).openUserSettings({screen: UserSettingsSections.ACCOUNT,
|
||||
|
||||
params: {initialTab: AccountSettingsTabs.STANDING}});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user