decord/source/__polyfill/01xxx/module_1860.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

61 lines
2.3 KiB
JavaScript

// Module ID: 1860
// Function ID: 1861
// Dependencies: [19, 17, 21, 1855, 1830, 1861, 1828, 1854]
// Exports: default
// Module 1860
import _mod1828 from "module_1828" /* 1828 */;
import "module_19";
require = fn;
const noop = fn(19);
({ useCallback: c3, useMemo: closure_4 } = noop);
get_ActivityIndicator = fn(17);
({ StyleSheet, Text: hasOwnProperty } = get_ActivityIndicator);
const jsx = fn(21).jsx;
const doneButtonContainer = StyleSheet.create({ doneButton: { fontWeight: "600", fontSize: 15 }, doneButtonContainer: { marginRight: 16, marginLeft: 8 } });
export default function _default(rippleRadius) {
({ children, onPress } = rippleRadius);
let num = rippleRadius.rippleRadius;
if (num === undefined) {
num = 28;
}
({ button, text } = rippleRadius);
if (button === undefined) {
button = keyboardState(theme[3]);
}
theme = undefined;
keyboardState = onPress(theme[4]).useKeyboardState((appearance) => appearance.appearance);
const obj = onPress(theme[4]);
theme = onPress(theme[5]).useToolbarContext().theme;
let items = [keyboardState, theme];
const items1 = [onPress];
const obj2 = onPress(theme[5]);
const obj3 = { accessibilityHint: "Closes the keyboard", accessibilityLabel: "Done", rippleRadius: num, style: doneButtonContainer.doneButtonContainer, testID: null, theme: null, onPress: null, children: null };
const tmp4 = closure_4(() => {
const items = [doneButton.doneButton, { color: theme[keyboardState].primary }];
return items;
}, items);
obj3.testID = onPress(theme[7]).TEST_ID_KEYBOARD_TOOLBAR_DONE;
obj3.theme = theme;
obj3.onPress = closure_3((isDefaultPrevented) => {
if (onPress != null) {
tmp(isDefaultPrevented);
}
if (!isDefaultPrevented.isDefaultPrevented()) {
const KeyboardController = _mod1828.KeyboardController;
KeyboardController.dismiss();
}
}, items1);
const obj4 = { maxFontSizeMultiplier: 1.3, style: tmp4, children: null };
if (children == null) {
children = text;
}
if (children == null) {
children = "Done";
}
obj4.children = children;
obj3.children = <closure_5 maxFontSizeMultiplier={1.3} style={tmp4}>{null}</closure_5>;
return <button accessibilityHint="Closes the keyboard" accessibilityLabel="Done" rippleRadius={num} style={doneButtonContainer.doneButtonContainer} testID={null} theme={null} onPress={null}>{null}</button>;
};