decord/source/1860_onPress.js

59 lines
1.8 KiB
JavaScript
Raw Normal View History

2026-08-06 08:05:19 +00:00
// Module ID: 1860
// Function ID: 1861
2026-07-29 08:29:29 +00:00
// Name: onPress
2026-08-06 08:05:19 +00:00
// Dependencies: [19, 21, 1853, 1854, 1859, 1826, 1852]
2026-07-29 08:29:29 +00:00
// Exports: default
2026-08-06 08:05:19 +00:00
// Module 1860 (onPress)
2026-07-29 08:29:29 +00:00
import "noop";
import { jsx } from "jsxProd";
const require = arg1;
require("noop").useCallback;
export default function _default(icon) {
let button;
let children;
let disabled;
let onPress;
let rippleRadius;
let style;
({ children, onPress } = icon);
({ disabled, button } = icon);
({ rippleRadius, style } = icon);
if (button === undefined) {
2026-08-06 08:05:19 +00:00
button = importDefault(1853);
2026-07-29 08:29:29 +00:00
}
icon = icon.icon;
if (icon === undefined) {
2026-08-06 08:05:19 +00:00
icon = importDefault(1854);
2026-07-29 08:29:29 +00:00
}
2026-08-06 08:05:19 +00:00
let obj = onPress(1859);
2026-07-29 08:29:29 +00:00
const toolbarContext = obj.useToolbarContext();
const theme = toolbarContext.theme;
if (disabled == null) {
disabled = toolbarContext.isNextDisabled;
}
const items = [onPress];
obj = { accessibilityHint: "Moves focus to the next field", accessibilityLabel: "Next", disabled, rippleRadius, style, testID: null, theme: null, onPress: null, children: null };
2026-08-06 08:05:19 +00:00
obj[5] = onPress(1852).TEST_ID_KEYBOARD_TOOLBAR_NEXT;
2026-07-29 08:29:29 +00:00
obj[6] = theme;
obj[7] = useCallback((isDefaultPrevented) => {
if (onPress != null) {
tmp(isDefaultPrevented);
}
if (!isDefaultPrevented.isDefaultPrevented()) {
const KeyboardController = onPress(outer1_2[5]).KeyboardController;
KeyboardController.setFocusTo("next");
}
}, items);
if (children == null) {
obj = { disabled: null, theme: null, type: "next" };
obj[0] = disabled;
obj[1] = theme;
children = tmp9(icon, obj);
}
obj[8] = children;
return <button accessibilityHint="Moves focus to the next field" accessibilityLabel="Next" disabled={disabled} rippleRadius={rippleRadius} style={style} testID={null} theme={null} onPress={null}>{null}</button>;
};