60 lines
3.6 KiB
TypeScript
60 lines
3.6 KiB
TypeScript
/* Metro module 4557; source: design/components/AccessibilityView/useAccessibilityViewIsModalToggle.native.tsx; dependencies: [31, 4558, 2] */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
|
|
function _fun38747(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#38747, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4735:6, offset: 0x010c94f0, size: 115 bytes, params: 8, frame: 17
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('design/components/AccessibilityView/useAccessibilityViewIsModalToggle.native.tsx');
|
|
exports.default = useAccessibilityViewIsModalToggle;
|
|
function useAccessibilityViewIsModalToggle({accessibilityViewIsModal, nativeID}) { // fn#38748, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4735:230, offset: 0x010c9563, size: 120 bytes, params: 2, frame: 16
|
|
accessibilityViewIsModal = !(accessibilityViewIsModal === undefined) && accessibilityViewIsModal;
|
|
let env0_2 = undefined;
|
|
const binding = env0_2;
|
|
env0_2 = binding.useRef(undefined);
|
|
binding.useEffect(_fun38750, [binding.useCallback(_fun38749, [accessibilityViewIsModal, nativeID])]);
|
|
function _fun38749() { // fn#38749, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4735:357, offset: 0x010c95db, size: 219 bytes, params: 1, frame: 14
|
|
var current;
|
|
var nativeIDBinding;
|
|
var binding;
|
|
let value = a0;
|
|
if (value !== undefined ? value : accessibilityViewIsModal) {
|
|
if (nativeID == null) {
|
|
throw new global.Error('Must have a unique nativeID when accessibilityViewIsModal is enabled.');
|
|
}
|
|
current = env0_2.current;
|
|
nativeIDBinding = nativeID;
|
|
if (current !== nativeIDBinding) {
|
|
binding = env0_2;
|
|
nativeIDBinding = nativeID;
|
|
binding.current = nativeIDBinding;
|
|
value = environment.__proto__;
|
|
value = importDefault(4558) /* metro dependency 4558: AccessibilityFocusLockManager */;
|
|
value.enableAccessibilityFocusLock([nativeIDBinding]);
|
|
}
|
|
} else {
|
|
current = env0_2.current;
|
|
if (current != null) {
|
|
env0_2.current = undefined;
|
|
value = environment.__proto__;
|
|
value = importDefault(4558) /* metro dependency 4558: AccessibilityFocusLockManager */;
|
|
value.disableAccessibilityFocusLock([current]);
|
|
}
|
|
}
|
|
}
|
|
|
|
function _fun38750() { // fn#38750, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4735:657, offset: 0x010c96b6, size: 22 bytes, params: 1, frame: 9
|
|
env0_3();
|
|
return _fun38751;
|
|
function _fun38751() { // fn#38751, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4735:666, offset: 0x010c96cc, size: 18 bytes, params: 1, frame: 11
|
|
env1_3(false);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun38747, 4557, [31, 4558, 2]) /* metro module 4557, dependencies: [31, 4558, 2] */;
|