125 lines
6.1 KiB
TypeScript
125 lines
6.1 KiB
TypeScript
/* Metro module 7897; source: modules/image/native/APNGPlayer.android.tsx; dependencies: [31, 33, 7601, 2] */
|
|
function _fun63249(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63249, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8075:6, offset: 0x01b77a2d, size: 162 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = importAll(31) /* metro dependency 31 */;
|
|
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
|
|
value = value.forwardRef(_fun63250);
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/image/native/APNGPlayer.android.tsx');
|
|
exports.useAPNGPlayerControls = useAPNGPlayerControls;
|
|
exports.APNGPlayer = value;
|
|
}
|
|
|
|
function _fun63250(a0, a1) { // fn#63250, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8075:136, offset: 0x01b77acf, size: 159 bytes, params: 3, frame: 18
|
|
const onLoad = a0.onLoad;
|
|
const value = Object.create(null);
|
|
value.onLoad = 0;
|
|
const value2 = copyDataProperties({}, a0, value, undefined);
|
|
const binding = env0_3;
|
|
const value4 = binding.useRef(null);
|
|
const value5 = binding.useCallback(function(a0) {
|
|
if (onLoad != null) {
|
|
onLoad(a0.nativeEvent.url);
|
|
}
|
|
}, [onLoad]);
|
|
binding.useImperativeHandle(a1, function() {
|
|
return {play: _fun63253, pause: _fun63254, stop: _fun63255, seek: _fun63256};
|
|
});
|
|
return ((Component) => <Component ref={value4} onLoad={value5} {...value2} />)(importDefault(7601) /* metro dependency 7601: APNGDecorationNativeComponent */);
|
|
}
|
|
|
|
function useAPNGPlayerControls(a0) { // fn#63257, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8075:707, offset: 0x01b77d10, size: 58 bytes, params: 2, frame: 14
|
|
const env0_0 = a0;
|
|
const binding = env0_3;
|
|
const env0_1 = binding.useRef(false);
|
|
return binding.useMemo(function() {
|
|
return {play: _fun63259, pause: _fun63260, stop: _fun63261, seek: _fun63262};
|
|
}, [a0]);
|
|
}
|
|
|
|
function _fun63252() { // fn#63252, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8075:275, offset: 0x01b77b98, size: 46 bytes, params: 1, frame: 3
|
|
return {play: play_63253, pause: pause_63254, stop: stop_63255, seek: seek_63256};
|
|
}
|
|
|
|
function _fun63258() { // fn#63258, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8075:748, offset: 0x01b77d4a, size: 46 bytes, params: 1, frame: 3
|
|
return {play: play_63259, pause: pause_63260, stop: stop_63261, seek: seek_63262};
|
|
}
|
|
|
|
function play_63253() { // fn#63253, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8075:286, offset: 0x01b77bc6, size: 73 bytes, params: 1, frame: 12
|
|
var value2;
|
|
var Commands;
|
|
if (env1_1.current != null) {
|
|
value2 = environment.__proto__.__proto__;
|
|
Commands = (require(7601) /* metro dependency 7601: APNGDecorationNativeComponent */).Commands;
|
|
Commands.play(env1_1.current);
|
|
}
|
|
}
|
|
|
|
function pause_63254() { // fn#63254, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8075:348, offset: 0x01b77c0f, size: 73 bytes, params: 1, frame: 12
|
|
var value2;
|
|
var Commands;
|
|
if (env1_1.current != null) {
|
|
value2 = environment.__proto__.__proto__;
|
|
Commands = (require(7601) /* metro dependency 7601: APNGDecorationNativeComponent */).Commands;
|
|
Commands.pause(env1_1.current);
|
|
}
|
|
}
|
|
|
|
function stop_63255() { // fn#63255, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8075:410, offset: 0x01b77c58, size: 107 bytes, params: 1, frame: 18
|
|
var value2;
|
|
const Commands = (require(7601) /* metro dependency 7601: APNGDecorationNativeComponent */).Commands;
|
|
var seek;
|
|
var binding;
|
|
var pause;
|
|
let current = env1_1.current;
|
|
if (current != null) {
|
|
value2 = environment.__proto__.__proto__;
|
|
seek = Commands.seek;
|
|
binding = env1_1;
|
|
current = binding.current;
|
|
Reflect.apply(seek, Commands, [current, 0]);
|
|
pause = Commands.pause;
|
|
current = binding.current;
|
|
Reflect.apply(pause, Commands, [current]);
|
|
}
|
|
}
|
|
|
|
function seek_63256(a0) { // fn#63256, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8075:509, offset: 0x01b77cc3, size: 77 bytes, params: 2, frame: 13
|
|
var value2;
|
|
var Commands;
|
|
if (env1_1.current != null) {
|
|
value2 = environment.__proto__.__proto__;
|
|
Commands = (require(7601) /* metro dependency 7601: APNGDecorationNativeComponent */).Commands;
|
|
Commands.seek(env1_1.current, a0);
|
|
}
|
|
}
|
|
|
|
function play_63259() { // fn#63259, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8075:759, offset: 0x01b77d78, size: 68 bytes, params: 1, frame: 10
|
|
if (!(env1_0.current == null || env1_1.current)) {
|
|
env1_0.current.play();
|
|
env1_1.current = true;
|
|
}
|
|
}
|
|
|
|
function pause_63260() { // fn#63260, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8075:831, offset: 0x01b77dbc, size: 68 bytes, params: 1, frame: 10
|
|
if (env1_0.current != null && env1_1.current) {
|
|
env1_0.current.pause();
|
|
env1_1.current = false;
|
|
}
|
|
}
|
|
|
|
function stop_63261() { // fn#63261, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8075:903, offset: 0x01b77e00, size: 68 bytes, params: 1, frame: 10
|
|
if (env1_0.current != null && env1_1.current) {
|
|
env1_0.current.stop();
|
|
env1_1.current = false;
|
|
}
|
|
}
|
|
|
|
function seek_63262(a0) { // fn#63262, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8075:974, offset: 0x01b77e44, size: 45 bytes, params: 2, frame: 11
|
|
if (env1_0.current != null) {
|
|
env1_0.current.seek(a0);
|
|
}
|
|
}
|
|
|