Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5012.js (118.4 MB)
32 lines
1.3 KiB
TypeScript
32 lines
1.3 KiB
TypeScript
// Module ID: 16393
|
|
// Function ID: 16394
|
|
// Name: showPushNotificationPromptModal
|
|
// Dependencies: [12749, 13044, 5030, 16394, 1980, 12752, 2]
|
|
// Exports: showPushNotificationPromptModal
|
|
|
|
// Module 16393 (showPushNotificationPromptModal)
|
|
import ModalActionCreatorsDefault from "ModalActionCreators" /* 5030 */;
|
|
import PushNotificationPermissionStore from "PushNotificationPermissionStore" /* 12749 */;
|
|
import NUFConstants from "NUFConstants" /* 13044 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const PermissionStateType = PushNotificationPermissionStore.PermissionStateType;
|
|
let closure_4 = NUFConstants.NUF_NOTIFICATION_MODAL_KEY;
|
|
let result = size.fileFinishedImporting("modules/nuf/native/showPushNotificationPromptModal.tsx");
|
|
|
|
export const showPushNotificationPromptModal = function showPushNotificationPromptModal(onComplete) {
|
|
onComplete = onComplete.onComplete;
|
|
ModalActionCreatorsDefault.pushLazy(onComplete(1980)(16394, dependencyMap.paths), {
|
|
onComplete() {
|
|
ModalActionCreatorsDefault.popWithKey(closure_4);
|
|
onComplete();
|
|
}
|
|
}, closure_4);
|
|
const obj2 = {
|
|
onComplete() {
|
|
ModalActionCreatorsDefault.popWithKey(closure_4);
|
|
onComplete();
|
|
}
|
|
};
|
|
const result = onComplete(12752).setPushPermissionState(PermissionStateType.PROMPT_SEEN);
|
|
};
|