decord/source/5631_getTVProps.js
2026-08-25 06:04:03 +00:00

39 lines
924 B
JavaScript

// Module ID: 5631
// Function ID: 5632
// Name: getTVProps
// Dependencies: [17]
// Exports: applyRelationProp, getTVProps
// Module 5631 (getTVProps)
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
const Platform = get_ActivityIndicator.Platform;
export const getTVProps = function getTVProps(focusable) {
if (Platform.isTV) {
let flag = focusable.focusable;
if (flag == null) {
flag = focusable.isTVSelectable;
}
if (flag == null) {
flag = true;
}
let obj = { isTVSelectable: null };
obj[0] = flag;
} else {
obj = {};
}
return obj;
};
export const applyRelationProp = function applyRelationProp(closure_0, arg1, arg2) {
if (arg2) {
const _Array = Array;
if (Array.isArray(arg2)) {
const items = [];
HermesBuiltin.arraySpread(arg2, 0);
HermesBuiltin.apply(items, closure_0);
} else {
tmp4(arg2);
}
}
};