2026-09-12 13:45:10 +00:00
|
|
|
// Module ID: 16019
|
|
|
|
|
// Function ID: 16020
|
2026-09-11 10:30:06 +00:00
|
|
|
// Name: useIsNotifSettingDisabled
|
2026-09-12 13:45:10 +00:00
|
|
|
// Dependencies: [16010, 16012, 16011, 504, 1114, 2722, 2]
|
2026-09-11 10:30:06 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-12 13:45:10 +00:00
|
|
|
// Module 16019 (useIsNotifSettingDisabled)
|
2026-09-11 10:30:06 +00:00
|
|
|
import _modDef2722 from "module_2722" /* 2722 */;
|
2026-09-12 13:45:10 +00:00
|
|
|
import DeclarativeSystemNotifPermissionHelpersDefault from "DeclarativeSystemNotifPermissionHelpers" /* 16011 */;
|
|
|
|
|
import DeclarativeSystemNotifPermissionAnalytics from "DeclarativeSystemNotifPermissionAnalytics" /* 16012 */;
|
|
|
|
|
import DeclarativeSystemNotifPermissionStore from "DeclarativeSystemNotifPermissionStore" /* 16010 */;
|
2026-09-11 10:30:06 +00:00
|
|
|
|
|
|
|
|
const require = globalThis.__r;
|
|
|
|
|
|
|
|
|
|
require = fn;
|
|
|
|
|
const size = fn(2);
|
|
|
|
|
let result = size.fileFinishedImporting("modules/notifications/settings/native/useIsNotifSettingDisabled.tsx");
|
|
|
|
|
|
|
|
|
|
export default function useIsNotifSettingDisabled(arg0) {
|
|
|
|
|
_require = arg0;
|
|
|
|
|
const items = [DeclarativeSystemNotifPermissionStore];
|
|
|
|
|
const stateFromStores = require("initialize").useStateFromStores(items, () => DeclarativeSystemNotifPermissionStore.isDisabled(closure_0));
|
|
|
|
|
let tmp4 = !stateFromStores;
|
|
|
|
|
if (stateFromStores) {
|
|
|
|
|
tmp4 = null == DeclarativeSystemNotifPermissionHelpersDefault.openSystemNotifSettings;
|
|
|
|
|
}
|
|
|
|
|
let tmp7 = !tmp4;
|
|
|
|
|
if (!tmp4) {
|
|
|
|
|
const obj2 = { label: null, onPress: null };
|
|
|
|
|
const intl = require("util").intl;
|
|
|
|
|
obj2.label = intl.string(_modDef2722.TVZ0Fm);
|
|
|
|
|
obj2.onPress = function handleOpenSystem() {
|
|
|
|
|
const result = DeclarativeSystemNotifPermissionAnalytics.trackSystemNotifSettingsOpened(closure_0);
|
|
|
|
|
const tmp = closure_0;
|
|
|
|
|
const openSystemNotifSettings = DeclarativeSystemNotifPermissionHelpersDefault.openSystemNotifSettings;
|
|
|
|
|
if (openSystemNotifSettings != null) {
|
|
|
|
|
const result1 = openSystemNotifSettings(tmp);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
tmp7 = obj2;
|
|
|
|
|
}
|
|
|
|
|
return tmp7;
|
|
|
|
|
};
|