56 lines
3.0 KiB
TypeScript
56 lines
3.0 KiB
TypeScript
/* Metro module 11088; source: modules/dismissible_content/native/DismissibleActionSheet.tsx; dependencies: [31, 4594, 4080, 2] */
|
|
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});
|
|
const env0_2 = importAll(31) /* metro dependency 31 */;
|
|
(require(2) /* metro dependency 2 */).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;
|
|
(importDefault(4594) /* metro dependency 4594: useMountEffect */)(_fun84901);
|
|
env0_2.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 object2 = {};
|
|
copyDataProperties(object2, binding, undefined);
|
|
object2['markAsDismissed'] = markAsDismissed;
|
|
Reflect.apply(openLazy, value, [value3, actionSheetKey, object2]);
|
|
}
|
|
|
|
function _fun84903() { // fn#84903, offset: 0x01f5b95f, size: 11 bytes, params: 1, frame: 1
|
|
return _fun84904;
|
|
}
|
|
|
|
function markAsDismissed(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 _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);
|
|
}
|
|
}
|
|
|