/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/jpush-react-native-noidfa@2.8.1/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
import{DeviceEventEmitter,NativeModules,Platform}from"react-native";const JPushModule=NativeModules.JPushModule,listeners={},ConnectEvent="ConnectEvent",NotificationEvent="NotificationEvent",LocalNotificationEvent="LocalNotificationEvent",CustomMessageEvent="CustomMessageEvent",TagAliasEvent="TagAliasEvent",MobileNumberEvent="MobileNumberEvent";export default class JPush{static setLoggerEnable(e){JPushModule.setDebugMode(e)}static init(){"android"==Platform.OS?JPushModule.init():JPushModule.loadJS()}static getRegistrationID(e){"android"==Platform.OS?JPushModule.getRegistrationID(e):JPushModule.getRegisterId(e)}static addTags(e){Platform.OS,JPushModule.addTags(e)}static updateTags(e){Platform.OS,JPushModule.setTags(e)}static deleteTag(e){Platform.OS,JPushModule.deleteTags(e)}static deleteTags(e){Platform.OS,JPushModule.cleanTags(e)}static queryTag(e){"android"==Platform.OS?JPushModule.checkTagBindState(e):JPushModule.validTag(e)}static queryTags(e){Platform.OS,JPushModule.getAllTags(e)}static setAlias(e){Platform.OS,JPushModule.setAlias(e)}static deleteAlias(e){Platform.OS,JPushModule.deleteAlias(e)}static queryAlias(e){Platform.OS,JPushModule.getAlias(e)}static setMobileNumber(e){Platform.OS,JPushModule.setMobileNumber(e)}static initCrashHandler(){"android"==Platform.OS?JPushModule.initCrashHandler():JPushModule.crashLogON(null)}static setPowerSaveMode(e){"android"==Platform.OS&&JPushModule.setPowerSaveMode(e)}static isNotificationEnabled(e){"android"==Platform.OS&&JPushModule.isNotificationEnabled(e)}static addLocalNotification(e){"android"==Platform.OS?JPushModule.addLocalNotification(e):JPushModule.addNotification(e)}static removeLocalNotification(e){"android"==Platform.OS?JPushModule.removeLocalNotification(e):JPushModule.removeNotification(e)}static clearLocalNotifications(){Platform.OS,JPushModule.clearLocalNotifications()}static clearAllNotifications(){"android"==Platform.OS&&JPushModule.clearAllNotifications()}static clearNotificationById(e){"android"==Platform.OS&&JPushModule.clearNotificationById(e)}static setMaxGeofenceNumber(e){"android"==Platform.OS?JPushModule.setMaxGeofenceNumber(e):JPushModule.setGeofenecMaxCount(e)}static deleteGeofence(e){"android"==Platform.OS?JPushModule.deleteGeofence(e):JPushModule.removeGeofenceWithIdentifier(e)}static addConnectEventListener(e){listeners[e]=DeviceEventEmitter.addListener(ConnectEvent,(t=>{e(t)}))}static addNotificationListener(e){listeners[e]=DeviceEventEmitter.addListener(NotificationEvent,(t=>{e(t)}))}static addLocalNotificationListener(e){listeners[e]=DeviceEventEmitter.addListener(LocalNotificationEvent,(t=>{e(t)}))}static addCustomMessagegListener(e){listeners[e]=DeviceEventEmitter.addListener(CustomMessageEvent,(t=>{e(t)}))}static addTagAliasListener(e){listeners[e]=DeviceEventEmitter.addListener(TagAliasEvent,(t=>{e(t)}))}static addMobileNumberListener(e){listeners[e]=DeviceEventEmitter.addListener(MobileNumberEvent,(t=>{e(t)}))}static removeListener(e){listeners[e]&&(listeners[e].remove(),listeners[e]=null)}static requestPermission(){"android"==Platform.OS&&JPushModule.requestPermission()}static stopPush(){"android"==Platform.OS&&JPushModule.stopPush()}static resumePush(){"android"==Platform.OS&&JPushModule.resumePush()}static isPushStopped(e){"android"==Platform.OS&&JPushModule.isPushStopped(e)}static setPushTime(e){"android"==Platform.OS&&JPushModule.setPushTime(e)}static setSilenceTime(e){"android"==Platform.OS&&JPushModule.setSilenceTime(e)}static setLatestNotificationNumber(e){"android"==Platform.OS&&JPushModule.setLatestNotificationNumber(e)}static setChannel(e){"android"==Platform.OS&&JPushModule.setChannel(e)}static setBadge(e){"ios"==Platform.OS&&JPushModule.setBadge(e)}}
//# sourceMappingURL=/sm/6511dcadd0e0e5084738263705707b024350e1f7c9b6551121cc78574f5505bc.map