2026-09-21 19:31:18 +00:00
|
|
|
// Module ID: 8215
|
|
|
|
|
// Function ID: 8216
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: useIsAccessibilityServiceEnabled
|
2026-09-21 19:31:18 +00:00
|
|
|
// Dependencies: [562, 5114, 5173, 558, 2]
|
|
|
|
|
// Exports: getIsAccessibilityServiceEnabled
|
2026-09-18 19:45:33 +00:00
|
|
|
|
2026-09-21 19:31:18 +00:00
|
|
|
// Module 8215 (useIsAccessibilityServiceEnabled)
|
|
|
|
|
import NativeDeviceAccessibilityModuleDefault from "NativeDeviceAccessibilityModule" /* 5114 */;
|
|
|
|
|
import useIsScreenReaderEnabled from "useIsScreenReaderEnabled" /* 5173 */;
|
|
|
|
|
import module_562 from "module_562" /* 562 */;
|
|
|
|
|
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
|
2026-09-18 19:45:33 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
|
|
|
|
|
|
|
|
|
function ACCESSIBILITY_SERVICE_ENABLED_GETTER(accessibilityServiceEnabled) {
|
|
|
|
|
return accessibilityServiceEnabled.accessibilityServiceEnabled;
|
|
|
|
|
}
|
2026-09-21 19:31:18 +00:00
|
|
|
const state = module_562.create((arg0) => {
|
2026-09-18 19:45:33 +00:00
|
|
|
closure_0 = arg0;
|
|
|
|
|
const result = NativeDeviceAccessibilityModuleDefault.onAccessibilityServiceEnabledChanged((accessibilityServiceEnabled) => {
|
|
|
|
|
closure_0({ accessibilityServiceEnabled });
|
|
|
|
|
});
|
|
|
|
|
const obj2 = { accessibilityServiceEnabled: null };
|
|
|
|
|
obj2.accessibilityServiceEnabled = NativeDeviceAccessibilityModuleDefault.isAccessibilityServiceEnabled();
|
|
|
|
|
return obj2;
|
|
|
|
|
});
|
|
|
|
|
let result = size.fileFinishedImporting("modules/a11y/native/useIsAccessibilityServiceEnabled.native.tsx");
|
|
|
|
|
|
|
|
|
|
export const getIsAccessibilityServiceEnabled = function getIsAccessibilityServiceEnabled() {
|
|
|
|
|
let accessibilityServiceEnabled = useIsScreenReaderEnabled.getIsScreenReaderEnabled();
|
|
|
|
|
if (!accessibilityServiceEnabled) {
|
|
|
|
|
accessibilityServiceEnabled = state.getState().accessibilityServiceEnabled;
|
|
|
|
|
}
|
|
|
|
|
return accessibilityServiceEnabled;
|
|
|
|
|
};
|
2026-09-21 19:31:18 +00:00
|
|
|
export const useIsAccessibilityServiceEnabled = ReactCompilerGating.isReactCompilerEnabled() ? (() => {
|
2026-09-18 19:45:33 +00:00
|
|
|
let isScreenReaderEnabled = useIsScreenReaderEnabled.useIsScreenReaderEnabled();
|
|
|
|
|
if (!isScreenReaderEnabled) {
|
|
|
|
|
isScreenReaderEnabled = state(ACCESSIBILITY_SERVICE_ENABLED_GETTER);
|
|
|
|
|
}
|
|
|
|
|
return isScreenReaderEnabled;
|
2026-09-21 19:31:18 +00:00
|
|
|
}) : (() => {
|
|
|
|
|
let isScreenReaderEnabled = useIsScreenReaderEnabled.useIsScreenReaderEnabled();
|
|
|
|
|
if (!isScreenReaderEnabled) {
|
|
|
|
|
isScreenReaderEnabled = state(ACCESSIBILITY_SERVICE_ENABLED_GETTER);
|
|
|
|
|
}
|
|
|
|
|
return isScreenReaderEnabled;
|
|
|
|
|
});
|