/* Metro module 459; source: unknown; dependencies: [6, 7, 209, 44, 460] */ import ClassCallCheck from './module-00006-ClassCallCheck.js'; /* Metro dependency 6 */ import CreateClass from './module-00007-CreateClass.js'; /* Metro dependency 7 */ import Module00044 from './module-00044.js'; /* Metro dependency 44 */ import Module00209 from './module-00209.js'; /* Metro dependency 209 */ import Module00460 from './module-00460.js'; /* Metro dependency 460 */ function _fun6095(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#6095, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:500:6, offset: 0x00cedec3, size: 185 bytes, params: 8, frame: 19 const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); let value = Module00209; value = new value(null); const Map = global.Map; let map = new Map(); map = _fun6096(); map.FetchResult = {'NewData': 'UIBackgroundFetchResultNewData', 'NoData': 'UIBackgroundFetchResultNoData', 'ResultFailed': 'UIBackgroundFetchResultFailed'}; exports.default = map; function _fun6096() { // fn#6096, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:500:149, offset: 0x00cedf7c, size: 637 bytes, params: 1, frame: 17 return CreateClass(PushNotificationIOS, [{key: 'finish', value: value_6099}, {key: 'getMessage', value: function() { return this._alert; }}, {key: 'getSound', value: function() { return this._sound; }}, {key: 'getCategory', value: function() { return this._category; }}, {key: 'getAlert', value: function() { return this._alert; }}, {key: 'getContentAvailable', value: function() { return this._contentAvailable; }}, {key: 'getBadgeCount', value: function() { return this._badgeCount; }}, {key: 'getData', value: function() { return this._data; }}, {key: 'getThreadID', value: function() { return this._threadID; }}], [{key: 'presentLocalNotification', value: value_6108}, {key: 'scheduleLocalNotification', value: value_6109}, {key: 'cancelAllLocalNotifications', value: value_6110}, {key: 'removeAllDeliveredNotifications', value: value_6111}, {key: 'getDeliveredNotifications', value: value_6112}, {key: 'removeDeliveredNotifications', value: value_6113}, {key: 'setApplicationIconBadgeNumber', value: value_6114}, {key: 'getApplicationIconBadgeNumber', value: value_6115}, {key: 'cancelLocalNotifications', value: value_6116}, {key: 'getScheduledLocalNotifications', value: value_6117}, {key: 'addEventListener', value: value_6118}, {key: 'removeEventListener', value: value_6123}, {key: 'requestPermissions', value: value_6124}, {key: 'abandonPermissions', value: value_6125}, {key: 'checkPermissions', value: value_6126}, {key: 'getInitialNotification', value: value_6127}, {key: 'getAuthorizationStatus', value: value_6129}]); function PushNotificationIOS(a0) { // fn#6097, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:500:160, offset: 0x00cee1f9, size: 192 bytes, params: 2, frame: 15 var environment; const env0_0 = a0; const value = environment.__proto__; env1_2(this, PushNotificationIOS); this._data = {}; this._remoteNotificationCompleteCallbackCalled = false; this._isRemote = a0.remote; if (this._isRemote) { this._notificationId = a0.notificationId; } if (a0.remote) { global.Object.keys(a0).forEach(_fun6098); } else { this._badgeCount = a0.applicationIconBadgeNumber; this._sound = a0.soundName; this._alert = a0.alertBody; this._data = a0.userInfo; this._category = a0.category; } function _fun6098(a0) { // fn#6098, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:500:408, offset: 0x00cee2b9, size: 119 bytes, params: 2, frame: 4 var binding; const property = env0_0[a0]; if (a0 === 'aps') { binding = env0_1; binding._alert = property.alert; binding._sound = property.sound; binding._badgeCount = property.badge; binding._category = property.category; binding._contentAvailable = property['content-available']; binding._threadID = property['thread-id']; } else { env0_1._data[a0] = property; } } } function value_6099(a0) { // fn#6099, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:500:802, offset: 0x00cee330, size: 124 bytes, params: 2, frame: 17 var value; if (this._isRemote && this._notificationId && !this._remoteNotificationCompleteCallbackCalled) { this._remoteNotificationCompleteCallbackCalled = true; value = environment.__proto__; value = importDefault(44) /* metro dependency 44 */; value(importDefault(460) /* metro dependency 460 */, 'PushNotificationManager is not available.'); value = importDefault(460) /* metro dependency 460 */; value.onFinishRemoteNotification(this._notificationId, a0); } } function value_6108(a0) { // fn#6108, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:500:1693, offset: 0x00cee3ee, size: 74 bytes, params: 2, frame: 16 const value = environment.__proto__; (Module00044)(Module00460, 'PushNotificationManager is not available.'); (Module00460).presentLocalNotification(a0); } function value_6109(a0) { // fn#6109, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:500:1868, offset: 0x00cee438, size: 74 bytes, params: 2, frame: 16 const value = environment.__proto__; (Module00044)(Module00460, 'PushNotificationManager is not available.'); (Module00460).scheduleLocalNotification(a0); } function value_6110() { // fn#6110, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:500:2047, offset: 0x00cee482, size: 70 bytes, params: 1, frame: 16 const value = environment.__proto__; (Module00044)(Module00460, 'PushNotificationManager is not available.'); (Module00460).cancelAllLocalNotifications(); } function value_6111() { // fn#6111, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:500:2232, offset: 0x00cee4c8, size: 70 bytes, params: 1, frame: 16 const value = environment.__proto__; (Module00044)(Module00460, 'PushNotificationManager is not available.'); (Module00460).removeAllDeliveredNotifications(); } function value_6112(a0) { // fn#6112, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:500:2419, offset: 0x00cee50e, size: 74 bytes, params: 2, frame: 16 const value = environment.__proto__; (Module00044)(Module00460, 'PushNotificationManager is not available.'); (Module00460).getDeliveredNotifications(a0); } function value_6113(a0) { // fn#6113, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:500:2599, offset: 0x00cee558, size: 74 bytes, params: 2, frame: 16 const value = environment.__proto__; (Module00044)(Module00460, 'PushNotificationManager is not available.'); (Module00460).removeDeliveredNotifications(a0); } function value_6114(a0) { // fn#6114, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:500:2786, offset: 0x00cee5a2, size: 74 bytes, params: 2, frame: 16 const value = environment.__proto__; (Module00044)(Module00460, 'PushNotificationManager is not available.'); (Module00460).setApplicationIconBadgeNumber(a0); } function value_6115(a0) { // fn#6115, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:500:2975, offset: 0x00cee5ec, size: 74 bytes, params: 2, frame: 16 const value = environment.__proto__; (Module00044)(Module00460, 'PushNotificationManager is not available.'); (Module00460).getApplicationIconBadgeNumber(a0); } function value_6116(a0) { // fn#6116, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:500:3159, offset: 0x00cee636, size: 74 bytes, params: 2, frame: 16 const value = environment.__proto__; (Module00044)(Module00460, 'PushNotificationManager is not available.'); (Module00460).cancelLocalNotifications(a0); } function value_6117(a0) { // fn#6117, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:500:3339, offset: 0x00cee680, size: 74 bytes, params: 2, frame: 16 const value = environment.__proto__; (Module00044)(Module00460, 'PushNotificationManager is not available.'); (Module00460).getScheduledLocalNotifications(a0); } function value_6118(a0, a1) { // fn#6118, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:500:3517, offset: 0x00cee6ca, size: 261 bytes, params: 3, frame: 18 const env0_0 = a1; const value2 = undefined; const defaultImport = Module00044; const value3 = a0 === 'notification'; let r6 = value3 || a0 === 'register'; r6 = !r6 ? a0 === 'registrationError' : r6; r6 = !r6 ? a0 === 'localNotification' : r6; defaultImport(r6, 'PushNotificationIOS only supports `notification`, `register`, `registrationError`, and `localNotification` events'); env1_5.set(a0, value3 ? env1_4.addListener('remoteNotificationReceived', _fun6119) : a0 === 'localNotification' ? env1_4.addListener('localNotificationReceived', _fun6120) : a0 === 'register' ? env1_4.addListener('remoteNotificationsRegistered', function(a0) { require(a0.deviceToken); }) : a0 !== 'registrationError' ? value2 : env1_4.addListener('remoteNotificationRegistrationError', _fun6122)); return value2; function _fun6119(a0) { // fn#6119, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:500:3829, offset: 0x00cee7cf, size: 46 bytes, params: 2, frame: 12 const value = environment.__proto__; require(new PushNotificationIOS(a0)); } function _fun6120(a0) { // fn#6120, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:500:3943, offset: 0x00cee7cf, size: 46 bytes, params: 2, frame: 12 const value = environment.__proto__; require(new PushNotificationIOS(a0)); } function _fun6122(a0) { // fn#6122, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:500:4165, offset: 0x00cee816, size: 19 bytes, params: 2, frame: 11 require(a0); } } function value_6123(a0) { // fn#6123, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:500:4232, offset: 0x00cee829, size: 128 bytes, params: 2, frame: 15 const defaultImport = Module00044; let r4 = a0 === 'notification' || a0 === 'register'; r4 = !r4 ? a0 === 'registrationError' : r4; r4 = !r4 ? a0 === 'localNotification' : r4; defaultImport(r4, 'PushNotificationIOS only supports `notification`, `register`, `registrationError`, and `localNotification` events'); const value6 = env1_5.get(a0); if (value6) { value6.remove(); env1_5.delete(a0); } } function value_6124(a0) { // fn#6124, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:500:4551, offset: 0x00cee8a9, size: 143 bytes, params: 2, frame: 17 const r2 = a0 ? {alert: !!a0.alert, badge: !!a0.badge, sound: !!a0.sound} : {'alert': true, 'badge': true, 'sound': true}; const value = environment.__proto__; (Module00044)(Module00460, 'PushNotificationManager is not available.'); return (Module00460).requestPermissions(r2); } function value_6125() { // fn#6125, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:500:4806, offset: 0x00cee938, size: 70 bytes, params: 1, frame: 16 const value = environment.__proto__; (Module00044)(Module00460, 'PushNotificationManager is not available.'); (Module00460).abandonPermissions(); } function value_6126(a0) { // fn#6126, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:500:4958, offset: 0x00cee97e, size: 106 bytes, params: 2, frame: 17 const value = environment.__proto__; (Module00044)(typeof a0 === 'function', 'Must provide a valid callback'); (Module00044)(Module00460, 'PushNotificationManager is not available.'); (Module00460).checkPermissions(a0); } function value_6127() { // fn#6127, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:500:5176, offset: 0x00cee9e8, size: 87 bytes, params: 1, frame: 16 var environment; let value = environment.__proto__; (Module00044)(importDefault(460) /* metro dependency 460 */, 'PushNotificationManager is not available.'); value = importDefault(460) /* metro dependency 460 */; value = value.getInitialNotification(); return value.then(_fun6128); function _fun6128(a0) { // fn#6128, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:500:5317, offset: 0x00ceea3f, size: 41 bytes, params: 2, frame: 12 const value = a0; return value && new PushNotificationIOS(value); } } function value_6129(a0) { // fn#6129, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:500:5407, offset: 0x00ceea68, size: 74 bytes, params: 2, frame: 16 const value = environment.__proto__; (Module00044)(Module00460, 'PushNotificationManager is not available.'); (Module00460).getAuthorizationStatus(a0); } } } global.__d(_fun6095, 459, [6, 7, 209, 44, 460]) /* metro module 459, dependencies: [6, 7, 209, 44, 460] */;