65 lines
4.0 KiB
TypeScript
65 lines
4.0 KiB
TypeScript
/* Metro module 9944; source: modules/zoom_layout/ZoomLayout.android.tsx; dependencies: [31, 27, 33, 9945, 2] */
|
|
import ZoomLayoutNativeComponent from '../../external/discord_common/js/packages/rtn-codegen/js/ZoomLayoutNativeComponent.tsx'; /* Metro dependency 9945 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactNativeModule from '../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
|
|
import * as ReactModule from '../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as JsxRuntimeModule from '../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
|
|
|
|
function _fun77837(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#77837, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10130:6, offset: 0x01e0dd68, size: 175 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = ReactModule;
|
|
value = value.forwardRef(_fun77838);
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/zoom_layout/ZoomLayout.android.tsx');
|
|
exports.default = value;
|
|
function _fun77838(a0, a1) { // fn#77838, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10130:157, offset: 0x01e0de17, size: 102 bytes, params: 3, frame: 15
|
|
const binding = env0_3;
|
|
const value2 = binding.useRef(null);
|
|
binding.useImperativeHandle(a1, function() {
|
|
return {zoomTo: _fun77840, unzoom: _fun77841};
|
|
});
|
|
return ((Component) => <Component {...a0} {...{['ref']: value2}} />)(ZoomLayoutNativeComponent);
|
|
function _fun77839() { // fn#77839, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10130:224, offset: 0x01e0de7d, size: 30 bytes, params: 1, frame: 3
|
|
return {zoomTo: zoomTo, unzoom: unzoom};
|
|
function zoomTo({x, y, scale, animated}) { // fn#77840, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10130:237, offset: 0x01e0de9b, size: 154 bytes, params: 2, frame: 21
|
|
var value2;
|
|
var value3;
|
|
var value4;
|
|
var value5;
|
|
var Commands;
|
|
scale = scale === undefined ? 2 : scale;
|
|
animated = animated === undefined || animated;
|
|
const value = environment.__proto__;
|
|
if (env1_0.current != null) {
|
|
value2 = environment.__proto__.__proto__;
|
|
value3 = PixelRatio.get();
|
|
value4 = x * value3;
|
|
value5 = y * value3;
|
|
Commands = (require(9945) /* metro dependency 9945: ZoomLayoutNativeComponent */).Commands;
|
|
Commands.zoomTo(env1_0.current, value4 / scale - value4, value5 / scale - value5, scale, animated);
|
|
}
|
|
}
|
|
|
|
function unzoom() { // fn#77841, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10130:381, offset: 0x01e0df35, size: 93 bytes, params: 1, frame: 15
|
|
var value2;
|
|
var Commands;
|
|
let value = a0;
|
|
let animated = (value !== undefined ? value : {}).animated;
|
|
animated = animated === undefined || animated;
|
|
value = environment.__proto__;
|
|
if (env1_0.current != null) {
|
|
value2 = environment.__proto__.__proto__;
|
|
Commands = (require(9945) /* metro dependency 9945: ZoomLayoutNativeComponent */).Commands;
|
|
Commands.unzoom(env1_0.current, animated);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun77837, 9944, [31, 27, 33, 9945, 2]) /* metro module 9944, dependencies: [31, 27, 33, 9945, 2] */;
|