decord/source/__polyfill/01xxx/module_1863.js
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

53 lines
1.8 KiB
JavaScript

// Module ID: 1863
// Function ID: 1864
// Dependencies: [19, 21, 1855, 1856, 1861, 1828, 1854]
// Exports: default
// Module 1863
import _mod1828 from "module_1828" /* 1828 */;
import disabledDefault from "disabled" /* 1855 */;
import _modDef1856 from "module_1856" /* 1856 */;
import noop from "module_19" /* 19 */;
require = fn;
fn(19).useCallback;
const jsx = fn(21).jsx;
export default function _default(icon) {
({ children, onPress } = icon);
({ disabled, button } = icon);
({ rippleRadius, style } = icon);
if (button === undefined) {
button = disabledDefault;
}
icon = icon.icon;
if (icon === undefined) {
icon = _modDef1856;
}
const toolbarContext = onPress(1861).useToolbarContext();
const theme = toolbarContext.theme;
if (disabled == null) {
disabled = toolbarContext.isPrevDisabled;
}
const items = [onPress];
const obj2 = { accessibilityHint: "Moves focus to the previous field", accessibilityLabel: "Previous", disabled, rippleRadius, style, testID: null, theme: null, onPress: null, children: null };
const obj = onPress(1861);
const tmp5 = onPress;
obj2.testID = tmp5(1854).TEST_ID_KEYBOARD_TOOLBAR_PREVIOUS;
obj2.theme = theme;
obj2.onPress = useCallback((isDefaultPrevented) => {
if (onPress != null) {
tmp(isDefaultPrevented);
}
if (!isDefaultPrevented.isDefaultPrevented()) {
const KeyboardController = _mod1828.KeyboardController;
KeyboardController.setFocusTo("prev");
}
}, items);
if (children == null) {
const obj3 = { disabled, theme, type: "prev" };
children = tmp9(icon, obj3);
}
obj2.children = children;
return <button accessibilityHint="Moves focus to the previous field" accessibilityLabel="Previous" disabled={disabled} rippleRadius={rippleRadius} style={style} testID={null} theme={null} onPress={null}>{null}</button>;
};