decord/source/7097_useLayoutState.js

38 lines
997 B
JavaScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 7097
// Function ID: 7098
2026-07-23 10:11:24 +00:00
// Name: useLayoutState
2026-08-24 06:08:38 +00:00
// Dependencies: [7079, 19, 7098]
2026-07-23 10:11:24 +00:00
// Exports: useLayoutState
2026-08-24 06:08:38 +00:00
// Module 7097 (useLayoutState)
import closure_2 from "_slicedToArray" /* 7079 */;
import noop from "noop" /* 19 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
({ useState: c3, useCallback: c4 } = noop);
2026-07-23 10:11:24 +00:00
export const useLayoutState = function useLayoutState(arg0) {
2026-07-29 08:29:29 +00:00
const tmp = callback(callback2(arg0), 2);
2026-07-23 10:11:24 +00:00
const _require = tmp[1];
recyclerViewContext = _require(recyclerViewContext[2]).useRecyclerViewContext();
const items = [tmp[0], ];
const items1 = [recyclerViewContext];
items[1] = callback3((arg0, arg1) => {
const callback = arg0;
callback((arg0) => {
2026-07-29 08:29:29 +00:00
let tmpResult = closure_0;
2026-08-04 21:03:28 +00:00
if (typeof closure_0 === "function") {
2026-07-29 08:29:29 +00:00
tmpResult = tmp(arg0);
2026-07-23 10:11:24 +00:00
}
2026-07-29 08:29:29 +00:00
return tmpResult;
2026-07-23 10:11:24 +00:00
});
if (!arg1) {
2026-07-29 08:29:29 +00:00
if (recyclerViewContext != null) {
obj.layout();
}
obj = recyclerViewContext;
2026-07-23 10:11:24 +00:00
}
}, items1);
return items;
};