decord/source/5648_LegacyScrollView.js
2026-08-25 06:04:03 +00:00

102 lines
3.4 KiB
JavaScript

// Module ID: 5648
// Function ID: 5649
// Name: LegacyScrollView
// Dependencies: [32, 109, 19, 17, 21, 5647, 5538, 5575]
// Exports: LegacyFlatList
// Module 5648 (LegacyScrollView)
import tagMessage from "tagMessage" /* 5538 */;
import itemsDefault from "items" /* 5647 */;
import closure_4 from "_slicedToArray" /* 32 */;
import closure_5 from "_objectWithoutProperties" /* 109 */;
import closure_6 from "noop" /* 19 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
import { jsx } from "jsxProd" /* 21 */;
require = arg1;
let closure_2 = ["refreshControl", "waitFor"];
let closure_3 = ["waitFor", "refreshControl"];
({ FlatList: error, DrawerLayoutAndroid, RefreshControl, ScrollView, Switch, TextInput } = get_ActivityIndicator);
let closure_9 = itemsDefault(ScrollView, { disallowInterruption: true, shouldCancelWhenOutside: false });
class LegacyScrollView {
constructor(arg0) {
obj = closure_6;
ref = closure_6.useRef(null);
({ refreshControl, waitFor } = global);
obj = {};
tmp2 = jsx;
tmp3 = closure_9;
merged = Object.assign(closure_5(global, closure_2));
obj3 = require("tagMessage");
if (waitFor == null) {
waitFor = [];
}
items = [];
items[HermesBuiltin.arraySpread(obj3.toArray(waitFor), 0)] = ref;
obj.waitFor = items;
cloneElementResult = undefined;
if (refreshControl) {
obj1 = { ref: null };
obj1[0] = ref;
cloneElementResult = obj.cloneElement(refreshControl, obj1);
}
obj.refreshControl = cloneElementResult;
return tmp2(tmp3, obj);
}
}
const tmp3 = itemsDefault(RefreshControl, { disallowInterruption: true, shouldCancelWhenOutside: false });
const tmp4 = itemsDefault(Switch, { shouldCancelWhenOutside: false, shouldActivateOnStart: true, disallowInterruption: true });
export const LegacyRefreshControl = tmp3;
export { LegacyScrollView };
export const LegacySwitch = tmp4;
export const LegacyTextInput = itemsDefault(TextInput);
export const LegacyDrawerLayoutAndroid = itemsDefault(DrawerLayoutAndroid, { disallowInterruption: true });
export const LegacyFlatList = (arg0) => {
const ref = React.useRef(null);
({ waitFor: dependencyMap, refreshControl } = arg0);
let obj = {};
obj = {};
const entries = Object.entries(callback2(arg0, closure_3));
while (tmp3 !== undefined) {
let tmp5 = callback;
let tmp6 = callback(tmp4, 2);
let first = tmp6[0];
let tmp8 = first;
let tmp9 = tmp6[1];
let tmp10 = ref;
let tmp11 = dependencyMap;
let nativeViewProps = ref(5575).nativeViewProps;
let tmp12 = first;
let tmp13 = tmp9;
if (nativeViewProps.includes(first)) {
obj[tmp8] = tmp9;
} else {
obj[tmp8] = tmp9;
}
continue;
}
obj = {};
let merged = Object.assign(obj);
obj.renderScrollComponent = function renderScrollComponent(arg0) {
obj = {};
const merged = Object.assign(arg0);
const merged1 = Object.assign(obj);
let items = closure_1;
if (closure_1 == null) {
items = [];
}
const items1 = [];
items1[HermesBuiltin.arraySpread(ref(closure_1_1[6]).toArray(items), 0)] = ref;
obj.waitFor = items1;
return closure_1_8(closure_1_10, obj);
};
let cloneElementResult;
if (refreshControl) {
obj1 = { ref: null };
obj1[0] = ref;
cloneElementResult = React.cloneElement(refreshControl, obj1);
}
obj.refreshControl = cloneElementResult;
return <closure_7 />;
};