Files
2026-07-28 01:06:53 +03:00

36 lines
2.3 KiB
TypeScript

/* Metro module 10930; source: modules/notifications/native/playInAppMessageSound.tsx; dependencies: [10907, 10931, 661, 1581, 10756, 2] */
import NotificationSettingsStore from '../../../stores/NotificationSettingsStore.tsx'; /* Metro dependency 10907 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as InAppMessageSoundsStoreModule from './InAppMessageSoundsStore.tsx'; /* Metro dependency 10931 */
function _fun83741(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83741, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11116:6, offset: 0x01f266fe, size: 162 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/native/playInAppMessageSound.tsx');
exports.playInAppMessageSound = playInAppMessageSound;
function playInAppMessageSound({type}) { // fn#83742, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11116:306, offset: 0x01f267a0, size: 181 bytes, params: 2, frame: 15
var moduleValue;
var notificationSettingsStoreBinding;
const MESSAGE = InAppNotificationTypes.MESSAGE;
if (type === MESSAGE) {
moduleValue = require(1581) /* metro dependency 1581: MetaQuestUtilsAndroid */;
if (moduleValue.isMetaQuest()) {
if (isInAppMessageSoundsEnabled()) {
notificationSettingsStoreBinding = NotificationSettingsStore;
if (!notificationSettingsStoreBinding.isSoundDisabled('message1')) {
if (!(global.Date.now() - env0_5 < 1000)) {
(require(10756) /* metro dependency 10756: SoundUtils */).playSound('message1', 0.4);
}
}
}
}
}
}
}
global.__d(_fun83741, 10930, [10907, 10931, 661, 1581, 10756,
2]) /* metro module 10930, dependencies: [10907, 10931, 661, 1581, 10756, 2] */;