60 lines
3.7 KiB
TypeScript
60 lines
3.7 KiB
TypeScript
/* Metro module 11088; source: modules/dismissible_content/native/DismissibleActionSheet.tsx; dependencies: [31, 4594, 4080, 2] */
|
|
import UseMountEffect from '../../../hooks/useMountEffect.tsx'; /* Metro dependency 4594 */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
|
|
function _fun84899(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#84899, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11274:6, offset: 0x01f5b7ec, size: 117 bytes, params: 8, frame: 17
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/dismissible_content/native/DismissibleActionSheet.tsx');
|
|
exports.DismissibleActionSheet = DismissibleActionSheet;
|
|
function DismissibleActionSheet(a0) { // fn#84900, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11274:226, offset: 0x01f5b861, size: 96 bytes, params: 2, frame: 15
|
|
const env0_0 = a0;
|
|
(UseMountEffect)(_fun84901);
|
|
ReactModule.useEffect(function() {
|
|
return _fun84904;
|
|
}, [a0.actionSheetKey, a0.hideSheetOnUnmount]);
|
|
return null;
|
|
function _fun84901() { // fn#84901, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11274:277, offset: 0x01f5b8c1, size: 93 bytes, params: 1, frame: 18
|
|
var environment;
|
|
let value = environment.__proto__;
|
|
value = importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */;
|
|
const openLazy = value.openLazy;
|
|
const binding = env0_0;
|
|
const value3 = binding.importer();
|
|
const actionSheetKey = binding.actionSheetKey;
|
|
const object = {};
|
|
copyDataProperties(object, binding, undefined);
|
|
object['markAsDismissed'] = markAsDismissed_84902;
|
|
Reflect.apply(openLazy, value, [value3, actionSheetKey, object]);
|
|
function markAsDismissed_84902(a0) { // fn#84902, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11274:351, offset: 0x01f5b91e, size: 65 bytes, params: 2, frame: 13
|
|
let value = environment.__proto__.__proto__;
|
|
value = importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */;
|
|
const hideActionSheet = value.hideActionSheet;
|
|
const binding = env1_0;
|
|
Reflect.apply(hideActionSheet, value, [binding.actionSheetKey]);
|
|
binding.markAsDismissed(a0);
|
|
}
|
|
|
|
}
|
|
|
|
function _fun84903() { // fn#84903, offset: 0x01f5b95f, size: 11 bytes, params: 1, frame: 1
|
|
return _fun84904;
|
|
function _fun84904() { // fn#84904, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11274:441, offset: 0x01f5b96a, size: 85 bytes, params: 1, frame: 12
|
|
var value3;
|
|
var defaultImport;
|
|
if (env1_0.hideSheetOnUnmount != null && env1_0.hideSheetOnUnmount) {
|
|
value3 = environment.__proto__.__proto__;
|
|
defaultImport = importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */;
|
|
defaultImport.hideActionSheet(env1_0.actionSheetKey);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun84899, 11088, [31, 4594, 4080, 2]) /* metro module 11088, dependencies: [31, 4594, 4080, 2] */;
|