48 lines
3.1 KiB
TypeScript
48 lines
3.1 KiB
TypeScript
/* Metro module 15441; source: modules/external_pip/useExternalPipAspectRatioUpdater.native.tsx; dependencies: [31, 10684, 2] */
|
|
import ExternalPipAndroid from './ExternalPip.android.tsx'; /* Metro dependency 10684 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactModule from '../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
|
|
function _fun118147(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#118147, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15638:6, offset: 0x024cdc00, size: 117 bytes, params: 8, frame: 17
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/external_pip/useExternalPipAspectRatioUpdater.native.tsx');
|
|
exports.default = useExternalPipAspectRatioUpdater;
|
|
function useExternalPipAspectRatioUpdater(a0, a1, a2) { // fn#118148, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15638:214, offset: 0x024cdc75, size: 85 bytes, params: 4, frame: 14
|
|
const env0_0 = a1;
|
|
const env0_1 = a2;
|
|
const binding = env0_2;
|
|
var env0_2 = binding.useRef(a2);
|
|
binding.useInsertionEffect(_fun118149);
|
|
binding.useEffect(_fun118150, [a1]);
|
|
function _fun118149() { // fn#118149, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15638:303, offset: 0x0100b231, size: 21 bytes, params: 1, frame: 2
|
|
env0_2.current = importDefault;
|
|
}
|
|
|
|
function _fun118150() { // fn#118150, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15638:336, offset: 0x024cdcca, size: 100 bytes, params: 1, frame: 15
|
|
const targetDimensions = require.getTargetDimensions(env0_2.current);
|
|
const defaultImport = ExternalPipAndroid;
|
|
defaultImport.setPipAspectRatio(targetDimensions.width, targetDimensions.height);
|
|
return require.subscribeFromItem(_fun118151);
|
|
function _fun118151() { // fn#118151, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15638:452, offset: 0x024cdd2e, size: 127 bytes, params: 1, frame: 14
|
|
var object;
|
|
let value = environment.__proto__;
|
|
value = require.getTargetDimensions(env1_2.current);
|
|
const width = value.width;
|
|
const height = value.height;
|
|
if (!(width === env0_0.width && height === env0_0.height)) {
|
|
object = {width: width, height: height};
|
|
value = environment.__proto__.__proto__;
|
|
value = importDefault(10684) /* metro dependency 10684: ExternalPipAndroid */;
|
|
value.setPipAspectRatio(width, height);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun118147, 15441, [31, 10684, 2]) /* metro module 15441, dependencies: [31, 10684, 2] */;
|