decord/beta/source/modules/external_pip/useExternalPipAspectRatioUpdater.native.tsx
github-actions 6fbb1b046c chore: update source for beta 347.8
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4943.js (118.4 MB)
2026-09-22 14:21:44 +00:00

85 lines
2.5 KiB
TypeScript

// Module ID: 17653
// Function ID: 17654
// Name: useExternalPipAspectRatioUpdater
// Dependencies: [19, 558, 568, 9696, 2]
// Module 17653 (useExternalPipAspectRatioUpdater)
import ExternalPipDefault from "ExternalPip" /* 9696 */;
import noop from "module_19" /* 19 */;
const require = globalThis.__r;
const require = fn;
const ReactCompilerGating = fn(558);
let size = fn(2);
const result = size.fileFinishedImporting("modules/external_pip/useExternalPipAspectRatioUpdater.native.tsx");
export default ReactCompilerGating.isReactCompilerEnabled() ? ((arg0, arg1, cResult) => {
_require = arg1;
const current = cResult;
cResult = require("c").c(5);
dependencyMap = noop.useRef(cResult);
if (cResult[0] !== cResult) {
const fn = function u() {
closure_2.current = current;
};
cResult[0] = cResult;
cResult[1] = fn;
let tmp2 = fn;
} else {
tmp2 = cResult[1];
}
const insertionEffect = obj2.useInsertionEffect(tmp2);
if (cResult[2] !== arg1) {
const fn2 = function c() {
size = size.getTargetDimensions(ref.current);
current(ref[3]).setPipAspectRatio(size.width, size.height);
return size.subscribeFromItem(() => {
const targetDimensions = size.getTargetDimensions(ref.current);
({ width, height } = targetDimensions);
let tmp2 = width === size.width;
if (tmp2) {
tmp2 = height === size.height;
}
if (!tmp2) {
size = { width, height };
ExternalPipDefault.setPipAspectRatio(width, height);
}
});
};
const items = [arg1];
cResult[2] = arg1;
cResult[3] = fn2;
cResult[4] = items;
let tmp5 = items;
let tmp4 = fn2;
} else {
tmp4 = cResult[3];
tmp5 = cResult[4];
}
const effect = obj2.useEffect(tmp4, tmp5);
}) : ((arg0, arg1, cResult) => {
closure_0 = arg1;
const current = cResult;
noop.useRef(cResult);
const insertionEffect = noop.useInsertionEffect(() => {
closure_2.current = current;
});
const items = [arg1];
const effect = noop.useEffect(() => {
size = size.getTargetDimensions(ref.current);
current(ref[3]).setPipAspectRatio(size.width, size.height);
return size.subscribeFromItem(() => {
const targetDimensions = size.getTargetDimensions(ref.current);
({ width, height } = targetDimensions);
let tmp2 = width === size.width;
if (tmp2) {
tmp2 = height === size.height;
}
if (!tmp2) {
size = { width, height };
ExternalPipDefault.setPipAspectRatio(width, height);
}
});
}, items);
});