28 lines
2.1 KiB
TypeScript
28 lines
2.1 KiB
TypeScript
/* Metro module 14356; source: modules/nuf/native/showPushNotificationPromptModal.tsx; dependencies: [11872, 12022, 5080, 14357, 1962, 11875, 2] */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as PushNotificationPermissionStoreModule from '../../../stores/native/PushNotificationPermissionStore.tsx'; /* Metro dependency 11872 */
|
|
import * as NUFConstantsModule from '../NUFConstants.tsx'; /* Metro dependency 12022 */
|
|
|
|
function _fun108654(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#108654, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14553:6, offset: 0x02328610, size: 146 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/nuf/native/showPushNotificationPromptModal.tsx');
|
|
exports.showPushNotificationPromptModal = showPushNotificationPromptModal;
|
|
function showPushNotificationPromptModal({onComplete}) { // fn#108655, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14553:285, offset: 0x023286a2, size: 140 bytes, params: 2, frame: 20
|
|
const defaultImport = importDefault(dependencyMap[2]);
|
|
defaultImport.pushLazy(require(dependencyMap[4])(dependencyMap[3], dependencyMap.paths), {onComplete: function() {
|
|
importDefault(dependencyMap[2]).popWithKey(NUF_NOTIFICATION_MODAL_KEY);
|
|
onComplete();
|
|
}}, NUF_NOTIFICATION_MODAL_KEY);
|
|
const moduleValue2 = require(dependencyMap[5]);
|
|
const setPushPermissionState = moduleValue2.setPushPermissionState;
|
|
const PROMPT_SEEN = PermissionStateType.PROMPT_SEEN;
|
|
Reflect.apply(setPushPermissionState, moduleValue2, [PROMPT_SEEN]);
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun108654, 14356, [11872, 12022, 5080, 14357, 1962, 11875,
|
|
2]) /* metro module 14356, dependencies: [11872, 12022, 5080, 14357, 1962, 11875, 2] */;
|