Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,55 @@
|
||||
/* Metro module 15425; source: modules/soundboard/useSoundboardSoundPlayer.native.tsx; dependencies: [31, 4613, 8900, 3829, 15426, 566, 6951, 2] */
|
||||
function _fun118022(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#118022, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15622:6, offset: 0x024c8eff, size: 159 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const soundboardStore = importDefault(4613) /* metro dependency 4613: SoundboardStore */;
|
||||
const env0_5 = (require(8900) /* metro dependency 8900: Constants */).SoundOutputChannel;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/soundboard/useSoundboardSoundPlayer.native.tsx');
|
||||
exports.default = useSoundboardSoundPlayer;
|
||||
}
|
||||
|
||||
function useSoundboardSoundPlayer(a0, a1) { // fn#118023, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15622:243, offset: 0x024c8f9e, size: 283 bytes, params: 3, frame: 20
|
||||
var setting;
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
let value = undefined;
|
||||
if (a2 === value) {
|
||||
setting = (require(3829) /* metro dependency 3829: UserSettings */).SoundboardSettings.getSetting();
|
||||
(setting == null ? value : setting.volume) != null;
|
||||
}
|
||||
if (a3 === value) {
|
||||
SoundOutputChannel.DEFAULT;
|
||||
}
|
||||
const binding = env0_3;
|
||||
const useContext = binding.useContext;
|
||||
const audioRef = Reflect.apply(useContext, binding,
|
||||
[importDefault(15426) /* metro dependency 15426: SoundPlayerContext */]).audioRef;
|
||||
const useStateFromStores = (require(566) /* metro dependency 566: flux */).useStateFromStores;
|
||||
value = Reflect.apply(useStateFromStores, value, [[SoundboardStore], _fun118024, [a0]]);
|
||||
const useCallback = binding.useCallback;
|
||||
return {playSoundboardSound: Reflect.apply(useCallback, binding, [_fun118025, [a0, audioRef, a1]]),
|
||||
isPlayingSound: value, previewSound: function() {
|
||||
var Promise = global.Promise;
|
||||
return Promise.resolve();
|
||||
}, isPreviewingSound: false};
|
||||
}
|
||||
|
||||
function _fun118024() { // fn#118024, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15622:460, offset: 0x024c90b9, size: 33 bytes, params: 1, frame: 11
|
||||
return SoundboardStore.isPlayingSound(env0_0.soundId);
|
||||
}
|
||||
|
||||
function _fun118025(a0) { // fn#118025, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15622:540, offset: 0x024c90da, size: 98 bytes, params: 2, frame: 15
|
||||
var value2;
|
||||
var moduleValue;
|
||||
if (audioRef.current != null) {
|
||||
audioRef.current.pause();
|
||||
}
|
||||
if (require != null) {
|
||||
value2 = environment.__proto__;
|
||||
moduleValue = require(6951) /* metro dependency 6951: SoundboardUtils */;
|
||||
moduleValue.playSound(env0_0, require, a0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user