decord/alpha/source/modules/nuf/native/showPushNotificationPromptModal.tsx

31 lines
1.2 KiB
TypeScript
Raw Normal View History

2026-10-12 06:59:38 +00:00
// Module ID: 16425
// Function ID: 16426
2026-07-20 16:05:17 +00:00
// Name: showPushNotificationPromptModal
2026-10-12 06:59:38 +00:00
// Dependencies: [12123, 12430, 5934, 16426, 2000, 12126, 2]
2026-07-20 16:05:17 +00:00
// Exports: showPushNotificationPromptModal
2026-10-12 06:59:38 +00:00
// Module 16425 (showPushNotificationPromptModal)
2026-10-10 08:08:14 +00:00
import ModalActionCreatorsDefault from "ModalActionCreators" /* 5934 */;
2026-10-12 06:59:38 +00:00
import PushNotificationPermissionStore from "PushNotificationPermissionStore" /* 12123 */;
import NUFConstants from "NUFConstants" /* 12430 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
const PermissionStateType = PushNotificationPermissionStore.PermissionStateType;
let closure_4 = NUFConstants.NUF_NOTIFICATION_MODAL_KEY;
let result = size.fileFinishedImporting("modules/nuf/native/showPushNotificationPromptModal.tsx");
2026-07-20 16:05:17 +00:00
export const showPushNotificationPromptModal = function showPushNotificationPromptModal(onComplete) {
2026-07-23 10:11:24 +00:00
onComplete = onComplete.onComplete;
2026-10-03 08:58:59 +00:00
let obj = ModalActionCreatorsDefault;
const obj2 = {
2026-10-08 09:57:35 +00:00
onComplete: function closeModal() {
2026-10-03 08:58:59 +00:00
const obj = ModalActionCreatorsDefault;
obj.popWithKey(closure_4);
2026-07-20 16:05:17 +00:00
onComplete();
}
};
2026-10-12 06:59:38 +00:00
obj.pushLazy(onComplete(2000)(16426, dependencyMap.paths), obj2, closure_4);
const obj3 = onComplete(12126);
2026-10-03 08:58:59 +00:00
const result = obj3.setPushPermissionState(PermissionStateType.PROMPT_SEEN);
2026-07-20 16:05:17 +00:00
};