Files
discord-decomp/sources/utils/getDeprecatedModalData.tsx
T
2026-07-28 01:06:53 +03:00

42 lines
2.5 KiB
TypeScript

/* Metro module 5082; source: utils/getDeprecatedModalData.tsx; dependencies: [4502, 661, 2] */
import AccessibilityStore from '../modules/a11y/AccessibilityStore.tsx'; /* Metro dependency 4502 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
function _fun44114(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#44114, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5260:6, offset: 0x01168978, size: 126 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(FileImportTrackerModule).fileFinishedImporting('utils/getDeprecatedModalData.tsx');
exports.default = getDeprecatedModalData;
function getDeprecatedModalData(a0, a1, a2) { // fn#44115, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5260:207, offset: 0x011689f6, size: 264 bytes, params: 4, frame: 7
let value = a3;
let r4 = value !== undefined ? value : null;
const object = {};
const key = a1.key;
value = null;
r4 = value != key ? key : r4;
object.key = value != r4 ? r4 : 'modal';
object.modal = a0;
const animation = a1.animation;
object.animation = value != animation ? animation : AccessibilityStore.useReducedMotion ? ModalAnimation.FADE : ModalAnimation.SLIDE_UP;
const shouldPersistUnderModals = a1.shouldPersistUnderModals;
object.shouldPersistUnderModals = value != shouldPersistUnderModals && shouldPersistUnderModals;
object.props = a2;
const backdropStyle = a1.backdropStyle;
object.backdropStyle = value != backdropStyle ? backdropStyle : value;
const backdropInstant = a1.backdropInstant;
object.backdropInstant = value != backdropInstant && backdropInstant;
const disableAnimation = a1.disableAnimation;
object.disableAnimation = value != disableAnimation && disableAnimation;
object.closable = typeof a1.closable !== 'boolean' || a1.closable;
const label = a1.label;
value = '';
object.label = value != label ? label : value;
object.callbacks = {};
return object;
}
}
global.__d(_fun44114, 5082, [4502, 661, 2]) /* metro module 5082, dependencies: [4502, 661, 2] */;