2026-07-25 08:10:48 +00:00
// Module ID: 10632
// Function ID: 82883
2026-07-20 16:05:17 +00:00
// Name: RNCPushNotificationIOS
2026-07-23 10:11:24 +00:00
// Dependencies: [6, 7, 27, 44]
2026-07-20 16:05:17 +00:00
2026-07-25 08:10:48 +00:00
// Module 10632 (RNCPushNotificationIOS)
2026-07-23 10:11:24 +00:00
import _classCallCheck from "_classCallCheck" ;
import _defineProperties from "_defineProperties" ;
import get _ActivityIndicator from "get ActivityIndicator" ;
const RNCPushNotificationIOS = get _ActivityIndicator . NativeModules . RNCPushNotificationIOS ;
const nativeEventEmitter = new get _ActivityIndicator . NativeEventEmitter ( RNCPushNotificationIOS ) ;
2026-07-20 16:05:17 +00:00
const map = new Map ( ) ;
2026-07-23 10:11:24 +00:00
const tmp5 = ( ( ) => {
2026-07-20 16:05:17 +00:00
class PushNotificationIOS {
constructor ( arg0 ) {
self = this ;
2026-07-23 10:11:24 +00:00
closure _0 = arg0 ;
2026-07-20 16:05:17 +00:00
self = this ;
2026-07-23 10:11:24 +00:00
tmp = outer1 _2 ( this , closure _0 ) ;
2026-07-20 16:05:17 +00:00
this . _data = { } ;
this . _remoteNotificationCompleteCallbackCalled = false ;
this . _isRemote = arg0 . remote ;
if ( this . _isRemote ) {
self . _notificationId = arg0 . notificationId ;
}
if ( arg0 . remote ) {
tmp2 = globalThis ;
_Object = Object ;
keys = Object . keys ( arg0 ) ;
item = keys . forEach ( ( arg0 ) => {
if ( "aps" === arg0 ) {
2026-07-23 10:11:24 +00:00
( { alert : self . _alert , sound : self . _sound , badge : self . _badgeCount , category : self . _category , content - available : self . _contentAvailable , thread - id : self . _threadID } = tmp ) ;
2026-07-20 16:05:17 +00:00
} else {
self . _data [ arg0 ] = tmp ;
}
} ) ;
} else {
( { applicationIconBadgeNumber : self . _badgeCount , soundName : self . _sound , alertBody : self . _alert , userInfo : self . _data , category : self . _category } = arg0 ) ;
}
return ;
}
}
let obj = {
key : "finish" ,
value : function finish ( arg0 ) {
const self = this ;
if ( tmp ) {
self . _remoteNotificationCompleteCallbackCalled = true ;
2026-07-23 10:11:24 +00:00
const result = outer1 _4 . onFinishRemoteNotification ( self . _notificationId , arg0 ) ;
2026-07-20 16:05:17 +00:00
}
}
} ;
const items = [ obj , , , , , , , , ] ;
obj = {
key : "getMessage" ,
value : function getMessage ( ) {
return this . _alert ;
}
} ;
items [ 1 ] = obj ;
obj = {
key : "getSound" ,
value : function getSound ( ) {
return this . _sound ;
}
} ;
items [ 2 ] = obj ;
items [ 3 ] = {
key : "getCategory" ,
value : function getCategory ( ) {
return this . _category ;
}
} ;
items [ 4 ] = {
key : "getAlert" ,
value : function getAlert ( ) {
return this . _alert ;
}
} ;
items [ 5 ] = {
key : "getContentAvailable" ,
value : function getContentAvailable ( ) {
return this . _contentAvailable ;
}
} ;
items [ 6 ] = {
key : "getBadgeCount" ,
value : function getBadgeCount ( ) {
return this . _badgeCount ;
}
} ;
items [ 7 ] = {
key : "getData" ,
value : function getData ( ) {
return this . _data ;
}
} ;
items [ 8 ] = {
key : "getThreadID" ,
value : function getThreadID ( ) {
return this . _threadID ;
}
} ;
const items1 = [
{
key : "presentLocalNotification" ,
value : function presentLocalNotification ( arg0 ) {
2026-07-23 10:11:24 +00:00
const result = outer1 _4 . presentLocalNotification ( arg0 ) ;
2026-07-20 16:05:17 +00:00
}
} ,
{
key : "scheduleLocalNotification" ,
value : function scheduleLocalNotification ( arg0 ) {
2026-07-23 10:11:24 +00:00
const result = outer1 _4 . scheduleLocalNotification ( arg0 ) ;
2026-07-20 16:05:17 +00:00
}
} ,
{
key : "cancelAllLocalNotifications" ,
value : function cancelAllLocalNotifications ( ) {
2026-07-23 10:11:24 +00:00
const result = outer1 _4 . cancelAllLocalNotifications ( ) ;
2026-07-20 16:05:17 +00:00
}
} ,
{
key : "removeAllDeliveredNotifications" ,
value : function removeAllDeliveredNotifications ( ) {
2026-07-23 10:11:24 +00:00
const result = outer1 _4 . removeAllDeliveredNotifications ( ) ;
2026-07-20 16:05:17 +00:00
}
} ,
{
key : "getDeliveredNotifications" ,
value : function getDeliveredNotifications ( arg0 ) {
2026-07-23 10:11:24 +00:00
const deliveredNotifications = outer1 _4 . getDeliveredNotifications ( arg0 ) ;
2026-07-20 16:05:17 +00:00
}
} ,
{
key : "removeDeliveredNotifications" ,
value : function removeDeliveredNotifications ( arg0 ) {
2026-07-23 10:11:24 +00:00
const result = outer1 _4 . removeDeliveredNotifications ( arg0 ) ;
2026-07-20 16:05:17 +00:00
}
} ,
{
key : "setApplicationIconBadgeNumber" ,
value : function setApplicationIconBadgeNumber ( arg0 ) {
2026-07-23 10:11:24 +00:00
const result = outer1 _4 . setApplicationIconBadgeNumber ( arg0 ) ;
2026-07-20 16:05:17 +00:00
}
} ,
{
key : "getApplicationIconBadgeNumber" ,
value : function getApplicationIconBadgeNumber ( arg0 ) {
2026-07-23 10:11:24 +00:00
const applicationIconBadgeNumber = outer1 _4 . getApplicationIconBadgeNumber ( arg0 ) ;
2026-07-20 16:05:17 +00:00
}
} ,
{
key : "cancelLocalNotifications" ,
value : function cancelLocalNotifications ( arg0 ) {
2026-07-23 10:11:24 +00:00
const result = outer1 _4 . cancelLocalNotifications ( arg0 ) ;
2026-07-20 16:05:17 +00:00
}
} ,
{
key : "getScheduledLocalNotifications" ,
value : function getScheduledLocalNotifications ( arg0 ) {
2026-07-23 10:11:24 +00:00
const scheduledLocalNotifications = outer1 _4 . getScheduledLocalNotifications ( arg0 ) ;
2026-07-20 16:05:17 +00:00
}
} ,
{
key : "addEventListener" ,
value : function addEventListener ( arg0 , arg1 ) {
2026-07-23 10:11:24 +00:00
let closure _0 = arg1 ;
2026-07-20 16:05:17 +00:00
let tmp3 = tmp2 ;
if ( "notification" !== arg0 ) {
tmp3 = "register" === arg0 ;
}
if ( ! tmp3 ) {
tmp3 = "registrationError" === arg0 ;
}
if ( ! tmp3 ) {
tmp3 = "localNotification" === arg0 ;
}
2026-07-23 10:11:24 +00:00
PushNotificationIOS ( outer1 _1 [ 3 ] ) ( tmp3 , "PushNotificationIOS only supports `notification`, `register`, `registrationError`, and `localNotification` events" ) ;
2026-07-20 16:05:17 +00:00
if ( "notification" === arg0 ) {
2026-07-23 10:11:24 +00:00
let addListenerResult = outer1 _5 . addListener ( "remoteNotificationReceived" , ( arg0 ) => {
callback ( new callback ( arg0 ) ) ;
2026-07-20 16:05:17 +00:00
} ) ;
} else if ( "localNotification" === arg0 ) {
2026-07-23 10:11:24 +00:00
addListenerResult = outer1 _5 . addListener ( "localNotificationReceived" , ( arg0 ) => {
callback ( new callback ( arg0 ) ) ;
2026-07-20 16:05:17 +00:00
} ) ;
} else if ( "register" === arg0 ) {
2026-07-23 10:11:24 +00:00
addListenerResult = outer1 _5 . addListener ( "remoteNotificationsRegistered" , ( deviceToken ) => {
callback ( deviceToken . deviceToken ) ;
2026-07-20 16:05:17 +00:00
} ) ;
} else if ( "registrationError" === arg0 ) {
2026-07-23 10:11:24 +00:00
addListenerResult = outer1 _5 . addListener ( "remoteNotificationRegistrationError" , ( arg0 ) => {
callback ( arg0 ) ;
2026-07-20 16:05:17 +00:00
} ) ;
}
2026-07-23 10:11:24 +00:00
const result = outer1 _6 . set ( arg0 , addListenerResult ) ;
2026-07-20 16:05:17 +00:00
}
} ,
{
key : "removeEventListener" ,
value : function removeEventListener ( arg0 , arg1 ) {
let tmp2 = "notification" === arg0 ;
if ( ! tmp2 ) {
tmp2 = "register" === arg0 ;
}
if ( ! tmp2 ) {
tmp2 = "registrationError" === arg0 ;
}
if ( ! tmp2 ) {
tmp2 = "localNotification" === arg0 ;
}
2026-07-23 10:11:24 +00:00
PushNotificationIOS ( outer1 _1 [ 3 ] ) ( tmp2 , "PushNotificationIOS only supports `notification`, `register`, `registrationError`, and `localNotification` events" ) ;
const value = outer1 _6 . get ( arg0 ) ;
2026-07-20 16:05:17 +00:00
if ( value ) {
value . remove ( ) ;
2026-07-23 10:11:24 +00:00
outer1 _6 . delete ( arg0 ) ;
2026-07-20 16:05:17 +00:00
}
}
} ,
{
key : "requestPermissions" ,
value : function requestPermissions ( alert ) {
if ( alert ) {
let obj = { alert : alert . alert , badge : alert . badge , sound : alert . sound } ;
} else {
2026-07-23 10:11:24 +00:00
obj = { alert : true , badge : true , sound : true } ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
return outer1 _4 . requestPermissions ( obj ) ;
2026-07-20 16:05:17 +00:00
}
} ,
{
key : "abandonPermissions" ,
value : function abandonPermissions ( ) {
2026-07-23 10:11:24 +00:00
outer1 _4 . abandonPermissions ( ) ;
2026-07-20 16:05:17 +00:00
}
} ,
{
key : "checkPermissions" ,
value : function checkPermissions ( arg0 ) {
2026-07-23 10:11:24 +00:00
PushNotificationIOS ( outer1 _1 [ 3 ] ) ( "function" === typeof arg0 , "Must provide a valid callback" ) ;
outer1 _4 . checkPermissions ( arg0 ) ;
2026-07-20 16:05:17 +00:00
}
} ,
{
key : "getInitialNotification" ,
value : function getInitialNotification ( ) {
2026-07-23 10:11:24 +00:00
const initialNotification = outer1 _4 . getInitialNotification ( ) ;
2026-07-20 16:05:17 +00:00
return initialNotification . then ( ( arg0 ) => {
let tmp = arg0 ;
if ( arg0 ) {
2026-07-23 10:11:24 +00:00
const prototype = outer1 _0 . prototype ;
tmp = new outer1 _0 ( arg0 ) ;
2026-07-20 16:05:17 +00:00
}
return tmp ;
} ) ;
}
}
] ;
return callback ( PushNotificationIOS , items , items1 ) ;
2026-07-23 10:11:24 +00:00
} ) ( ) ;
tmp5 . FetchResult = { NewData : "UIBackgroundFetchResultNewData" , NoData : "UIBackgroundFetchResultNoData" , ResultFailed : "UIBackgroundFetchResultFailed" } ;
2026-07-20 16:05:17 +00:00
export default tmp5 ;