38 lines
1.9 KiB
TypeScript
38 lines
1.9 KiB
TypeScript
/* Metro module 14782; source: modules/notification_center/useNotificationCenterItemAcked.tsx; dependencies: [14775, 566, 4788, 2] */
|
|
function _fun111659(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#111659, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14979:6, offset: 0x023aacff, size: 114 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const notificationCenterStore = importDefault(14775) /* metro dependency 14775: NotificationCenterStore */;
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notification_center/useNotificationCenterItemAcked.tsx');
|
|
exports.useNotificationCenterItemAcked = useNotificationCenterItemAcked;
|
|
}
|
|
|
|
function useNotificationCenterItemAcked(a0, a1) { // fn#111660, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14979:235, offset: 0x023aad71, size: 119 bytes, params: 3, frame: 17
|
|
var r1;
|
|
var r0;
|
|
const env0_0 = a0;
|
|
var value;
|
|
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([NotificationCenterStore],
|
|
_fun111661);
|
|
const forceUnacked = a0.forceUnacked;
|
|
if (forceUnacked) {
|
|
r0 = !forceUnacked;
|
|
} else {
|
|
if (value2) {
|
|
r1 = value2;
|
|
} else {
|
|
value = require(4788) /* metro dependency 4788: NotificationCenterUtils */;
|
|
value = value.isRemoteAcked(a0, a1);
|
|
r1 = value;
|
|
}
|
|
r0 = r1;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function _fun111661() { // fn#111661, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14979:281, offset: 0x023aade8, size: 27 bytes, params: 1, frame: 11
|
|
return NotificationCenterStore.isLocalItemAcked(env0_0);
|
|
}
|
|
|